Calendar Functions (simpler leap year calculation)

Henry Spencer henry at utzoo.UUCP
Thu Sep 25 10:03:37 AEST 1986


> ...If you really want an algorithm for all years,
> you then need to also test for years divisible by 4000...

No, there is no 4000-year correction.  There's 4 and 400 and that's it
at present.  Some twiddling will eventually become necessary, but it
won't be anything as simple and uniform as leap millenia -- the function
we are trying to approximate is not linear on that time scale.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,decvax,pyramid}!utzoo!henry



More information about the Comp.lang.c mailing list