home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!opstad
- From: opstad@Apple.COM (David Opstad)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Look before you Leap
- Message-ID: <72110@apple.Apple.COM>
- Date: 7 Sep 92 20:17:35 GMT
- References: <lanbtrINN8tj@pollux.usc.edu>
- Organization: Apple Computer Inc, Cupertino, CA
- Lines: 19
-
- In article <lanbtrINN8tj@pollux.usc.edu> suhler@pollux.usc.edu (Paul A. Suhler) writes:
- >A note for those writing programs that calculate future dates:
- >unless I'm mistaken, any year which is integrally divisible by 400
- >is NOT a leap year.
- >
- >Paul Suhler
-
- Actually, this isn't correct. The scheme (as it currently stands) is:
-
- years divisible by 4 are leap years, but
- years divisible by 100 are not leap years, but
- years divisible by 400 are leap years.
-
- Note that 2000 *is* a leap year. 2100, however, is not, so for all you folks
- planning on being around that long, you can now plan ahead. :-)
-
- Dave Opstad
- Line Layout Weenie
-
-