In <[EMAIL PROTECTED]>, on 09/13/2005
   at 03:22 AM, john gilmore <[EMAIL PROTECTED]> said:

>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.

For the next few years, yes. Eventually there will be a need for an
additional adjustment.
 
-- 
     Shmuel (Seymour J.) Metz, SysProg and JOAT
     ISO position; see <http://patriot.net/~shmuel/resume/brief.html> 
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

----------------------------------------------------------------------
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

Reply via email to