Mail Archives: opendos/1998/02/21/22:18:09
X-Comment-To: Charles Dye
Hi!
21-ζΕΧ-98 18:12 raster AT highfiber DOT com (Charles Dye) wrote to opendos AT delorie DOT com:
> phil DOT man AT juno DOT com (Phillip A. Lettkeman) writes:
> 2000 will be a leap year. Enjoy it -- a leap day in a year ending in 00
> is a rare occurrence in the Gregorian calendar, happening only once every
> four hundred years. Such a leap day will always fall on a Tuesday (left
> as an exercise.)
O! How fine! You right: (400*365+100-4+1) % 7 == 0.
> (which we use) like the much simpler Julian calendar. Within the range
> Microsoft chose, you can determine whether a year is leap simply by testing
> the lowest two bits.
Hm. You right - y%4==y&3. Why I not see this before?
[...]
> A good all-around guide to the Julian, Gregorian, and even messier systems:
> ftp.simtel.net/pub/simtelnet/msdos/info/calfaq.zip
I check this. :)
- Raw text -