Algorithm wanted

R. Curtis Jackson rcj at burl.UUCP
Thu Dec 6 23:54:55 AEST 1984


Make sure that whatever algorithm you get takes the following
into account about leap years:

a) Any year divisible by 4 is a leap year, unless
b) it is divisible by 100 as well, in which case it is NOT a leap
   year, unless
c) it is divisible by 400 as well, in which case it is a leap year
   after all.

What stupid rules!

Thanks to Geoff and John here for this scintillating info on leap
year calculation,
-- 
The MAD Programmer -- 919-228-3313 (Cornet 291)
alias: Curtis Jackson	...![ ihnp4 ulysses cbosgd mgnetp ]!burl!rcj
			...![ ihnp4 cbosgd akgua masscomp ]!clyde!rcj



More information about the Comp.sources.unix mailing list