home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!rpi!bu.edu!transfer!ceylon!choffman.gte.com!user
- From: chuck@gte.com (Chuck Hoffman)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Look before you Leap
- Message-ID: <chuck-090992152002@choffman.gte.com>
- Date: 9 Sep 92 19:23:17 GMT
- References: <lanbtrINN8tj@pollux.usc.edu> <1992Sep9.143915.19555@nic.funet.fi>
- Sender: news@ceylon.gte.com
- Followup-To: comp.sys.mac.programmer
- Organization: GTE Laboratories
- Lines: 27
-
- In article <1992Sep9.143915.19555@nic.funet.fi>, asunta@convex.csc.FI
- (Miika Asunta) wrote:
- >
- > In <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
- >
- > Howzabout 2000/400=5?
- >
- > 1980,1984,1988,1992,1996,2000
-
- If it is integrally divisible by 400 it *IS* a leap year. The year 1900
- was not a leap year (divisible by 4, but not by 400). The year 2000 will
- be.
-
- Chuck Hoffman
- chuck@gte.com
- GTE Laboratories, Waltham, Massachusetts, USA
- (617) 466-2131
- =====================================
- I'm not sure why we're here, but I am sure that while we're here we're
- supposed to help each other.
- =====================================
-