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

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!rpi!bu.edu!dartvax!Joe.Francis
  2. From: Joe.Francis@dartmouth.edu (Joe Francis)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Look before you Leap
  5. Message-ID: <1992Sep9.183024.16138@dartvax.dartmouth.edu>
  6. Date: 9 Sep 92 18:30:24 GMT
  7. References: <lanbtrINN8tj@pollux.usc.edu>  
  8.  <1992Sep9.143915.19555@nic.funet.fi>
  9. Sender: news@dartvax.dartmouth.edu (The News Manager)
  10. Organization: Dartmouth College, Hanover, NH
  11. Lines: 12
  12. X-Posted-From: InterNews1.0a4@newshost.dartmouth.edu
  13.  
  14. In <lanbtrINN8tj@pollux.usc.edu> suhler@pollux.usc.edu (Paul A. Suhler)
  15. writes:
  16.  
  17. >A note for those writing programs that calculate future dates:
  18. >unless I'm mistaken, any year which is integrally divisible by 400
  19. >is NOT a leap year.
  20.  
  21. I believe this is incorrect.  Years divisible by 4 are leap years,
  22. except for years divisible by 100 which aren't, except for years
  23. divisible by 400 which are.  This yields a calender of (on average)
  24. 365.2425 days a year, very close to the actual 365.2422 days in a solar
  25. year.
  26.