Re: [htdig3-dev] mytimegm() not Y2K compliant!


Geoff Hutchison (ghutchis@wso.williams.edu)
Fri, 26 Feb 1999 17:52:42 -0500


>It seems to me the LEAP_YEAR() macro should be:
>
> #define LEAP_YEAR(y) ((((y+1900))%4 == 0) && (((y+1900))%100 != 0 ||
>((y+1900))%400 == 0))

Good point. I guess I need to check in the change to use glibc timegm...
Let's fix the mytimegm file for now, but I'll also check in the changes to
use glibc code by default.

Last time I did this, there were problems compiling on some platforms
(Solaris comes to mind). However, with no release breathing down our necks,
I'd like to make the switch now and work out the bugs. I know the glibc
folks are better at catching these sorts of bugs than I. :-)

-Geoff

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
htdig3-dev@htdig.org containing the single word "unsubscribe" in
the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Fri Feb 26 1999 - 15:13:22 PST