There is no need to use a simplified or 'linear' leap-year correction
calculation. For any algebraic Gregorian year value y the exact signed
number of leap-year correction days in preceding years is easily calculated
by the method of inclusions and exclusions. It is just
C(y) = 365(y - 1)
+ (y - 1)//4
- (y - 1)//100
+ (y - 1)//400
in which '//' denotes remainder-discarding binary-integer division.
John Gilmore
Ashland, MA 01721
USA
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html