home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15245 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  1.3 KB

  1. Path: sparky!uunet!gatech!rpi!bu.edu!transfer!ceylon!choffman.gte.com!user
  2. From: chuck@gte.com (Chuck Hoffman)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Look before you Leap
  5. Message-ID: <chuck-090992152002@choffman.gte.com>
  6. Date: 9 Sep 92 19:23:17 GMT
  7. References: <lanbtrINN8tj@pollux.usc.edu> <1992Sep9.143915.19555@nic.funet.fi>
  8. Sender: news@ceylon.gte.com
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: GTE Laboratories
  11. Lines: 27
  12.  
  13. In article <1992Sep9.143915.19555@nic.funet.fi>, asunta@convex.csc.FI
  14. (Miika Asunta) wrote:
  15. > In <lanbtrINN8tj@pollux.usc.edu> suhler@pollux.usc.edu (Paul A. Suhler) writes:
  16. > >A note for those writing programs that calculate future dates:
  17. > >unless I'm mistaken, any year which is integrally divisible by 400
  18. > >is NOT a leap year.
  19. > >Paul Suhler
  20. > Howzabout 2000/400=5?
  21. > 1980,1984,1988,1992,1996,2000
  22.  
  23. If it is integrally divisible by 400 it *IS* a leap year.  The year 1900
  24. was not a leap year (divisible by 4, but not by 400).  The year 2000 will
  25. be.
  26.  
  27. Chuck Hoffman
  28. chuck@gte.com
  29. GTE Laboratories, Waltham, Massachusetts, USA
  30. (617) 466-2131
  31. =====================================
  32. I'm not sure why we're here, but I am sure that while we're here we're
  33. supposed to help each other.
  34. =====================================
  35.