delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/1998/02/21/22:18:09

To: opendos AT delorie DOT com
References: <199802220112 DOT SAA24729 AT kewlaid DOT highfiber DOT com>
Message-Id: <ABvLvxq0WQ@belous.munic.msk.su>
From: "Arkady V.Belousov" <ark AT belous DOT munic DOT msk DOT su>
Date: Sun, 22 Feb 1998 06:03:21 +0300 (MSK)
Organization: Locus
Reply-To: ark AT mos DOT ru
Subject: Re: Y2K fix
Lines: 25
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019