Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!torsqnt!geac!blister!greg From: greg@blister.Solbourne.COM (Greg Foisy) Newsgroups: comp.sys.handhelds Subject: Re: Leap Years Message-ID: <1990Aug12.144937.4275@blister.Solbourne.COM> Date: 12 Aug 90 14:49:37 GMT References: <6758.26c2a07b@jetson.uh.edu> <648@atcmpe.atcmp.nl> Reply-To: greg@blister.UUCP (Greg Foisy) Organization: Solbourne Computer of Canada, Ltd. Lines: 50 In article <648@atcmpe.atcmp.nl> jc@atcmp.nl (Jan Christiaan van Winkel) writes: >From article <6758.26c2a07b@jetson.uh.edu>, by math1i7@jetson.uh.edu: >) 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 >Scott was right. I.e. 1904, 1908, 1912,... were leappyears, >1900, 2100, 2200, 2300 are not but 2000 is. (Ever wonder why >electronic watches keep the correct date until 2099...:-) Well, he was kinda right... quoting from parts of the Gregorian Year Table: Leap Years ---------- Every 4th year but only those centesimal years divisible by 400. FYI, the rest of the info that resides in a year table: Year Chronology --------------- From Roman year 754, the year immediately following the birth of Christ as placed by Dionysus Exiguus in the 753rd year of Rome Year Begins ----------- Ten days after the winter solstice Number of Days -------------- Common Years 365 Leap years 366 -- "The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little." -- Porterfield