Calculating the length of a year

Stuart D. Gathman stuart at bms-at.UUCP
Fri Nov 14 06:12:51 AEST 1986


In article <53 at vianet.UUCP>, devine at vianet.UUCP (Bob Devine) writes:

>     2. Gregorian rules -- this works from the year after your country

> 	   if (year%4 == 0 && year%100 != 0 || year%400 == 0)

The years 4000, 8000, . . . are not leap years!
-- 
Stuart D. Gathman	<..!seismo!{vrdxhq|dgis}!bms-at!stuart>



More information about the Comp.lang.c mailing list