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

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