
According To leap year calculations:
1. If a Years is divisible by 4: then leap year, UNLESS
2. Years is divisible by 100: then not leap year, EXCEPTION WHEN
3. Years is divisible by 400: then leap year, if and only if
4. Year 4000 is Not by Disis Then not leap year.
Is step 4 Used at all? I know 1-3 is for sure.
I am a leap year programming script, it's not like it Will Be important to me - I'll Will not Be Able To Live 1993 Years to see it.Just curious.
Nichole Duguay says...
I think step 4 had been proposed to improve the accuracy. Not sure if it is accepted internationally. But it is certainly correct.
If you choose not to implement it, just put a note somewhere that the routine works for years up to 3999.
Posted on June 11, 2011