[alt.sources.wanted] date -> int -> date conversion

dcon@cbnewsc.att.com (david.r.connet) (01/15/91)

I'm looking for an algorithm to translate a date (mm/dd/yyy)
to an int and back again.  It is important that the date
be the some.  So rounding off with leap years isn't good
enough.  (Currently, I figure how far into the year it is
then add 'days += (int)((float)year * 365.25)', but this can
allow round-off to occur.)  I'm sure it's not that complex,
but you know how time is...

Please email me as articles often expire before I get a chance
to read them again.  If enough people are interested, I will
post a summary.

Thanks in advance.

Dave Connet
dcon@iwtng.att.com