Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!itsgw!steinmetz!crdgw1!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: Daylight Savings Time, Leap Years, ctime, and date Message-ID: <1459@auspex.auspex.com> Date: 18 Apr 89 07:40:41 GMT References: <1006@necis.UUCP> <489@lakart.UUCP> <1918@edison.GE.COM> Reply-To: guy@auspex.auspex.com (Guy Harris) Distribution: usa Organization: Auspex Systems, Santa Clara Lines: 11 > > 2) Does anyone know if the new versions are less naive about determining > > leap years? It seems the current routines only use the "year % 4 ==0" > > rule. > >Fixed by POSIX as I recall. (POSIX == IEEE 1003.1 standard in this case). Nope. POSIX just refers to ANSI C for the descriptions of "localtime" and "mktime", and the (d)(p)ANS doesn't say anything about how those routines should decide what a leap year is. It's a quality-of-implementation issue.