From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: serialdate to HEX Date: 30 Nov 2002 12:36:19 GMT Organization: Aachen University of Technology (RWTH) Lines: 26 Message-ID: References: <3 DOT 0 DOT 6 DOT 16 DOT 20021127151001 DOT 4b673a36 AT pop3 DOT 01019freenet DOT de> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1038659779 6857 137.226.32.75 (30 Nov 2002 12:36:19 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 30 Nov 2002 12:36:19 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Michelle Konzack wrote: > But the serialdate under Linux is to large... in Decimal. It might help if you could explain what you mean by "serialdate". To store just the date, a good compromise might be to just store it in decimal: 20021130 would be 2002, November 30th, i.e. today. > Now I am Looking for a function to convert the serialdate to > HEX that it fit into the 8.3 names. Hex isn't a very useful format if you want to reduce the number of letters needed --- it only stores 4 bits per character, so it wastes about 50 percent of the available 8 bits. > Can anyone help me ? > + reverse function please. > Thanks > Michelle -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.