delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/30/07:45:05

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
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: <asabc3$6m9$1@nets3.rz.RWTH-Aachen.DE>
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 <dos DOT mailinglists AT freenet DOT de> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019