Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!lavaca.uh.edu!jetson.uh.edu!math1i7 From: math1i7@jetson.uh.edu Newsgroups: comp.sys.handhelds Subject: Re: Leap Years Message-ID: <6758.26c2a07b@jetson.uh.edu> Date: 10 Aug 90 11:54:35 CDT References: <31210047@hpcvia.CV.HP.COM> Organization: University of Houston Lines: 16 In article <31210047@hpcvia.CV.HP.COM>, scottb@hpcvia.CV.HP.COM (Scott_Burke) writes: > > Would someone please verify that I have the leap year algorithm correct: > > February has 28 days UNLESS the year is divisible by 4, in which case > February has 29 days UNLESS the year is divisible by 100, in which case > February has 28 days UNLESS the year is divisible by 400, in which case > February has 29 days. Scott, I have never heard about the 100 and 400 year rules... I had always assumed that: IF 0 year 4 MOD == THEN 28 ELSE 29 END Are the 100 and 400 year rules there to correct for the fraction of a second off each year is from a "true" 365 or 366 days? Gordon