[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: re. date format



At 03:28 PM 11/25/1997 -0500, you wrote:
>Amen.  That's why I wanted these strings to be compared as ASCII...no 
>conversion.
...
>The intersection computation is one of < or > comparison followed by 
>selection of one string or another -- not of arithmetic.

How tightly do you need to be able to compare times?
yyyymmddhh 1997112615 gets you to one hour precision in 32 bits, though
you need to make dates unsigned if you want to avoid the Y2147 problem.
Alternatively, two integers/strings yyyymmdd hhmmssfff (left-aligning hhmmssfff),
if that's not enough for you, or even yyyymmdd xxxxxxxxxx (nanodays since midnight).

				Thanks! 
					Bill
Bill Stewart, stewarts@ix.netcom.com
Regular Key PGP Fingerprint D454 E202 CBC8 40BF  3C85 B884 0ABE 4639

References: