[comp.lang.pascal] leap years

DAVID@ches.cs.vims.edu (05/18/91)

In article <1991May17.074806.130@hls.com>, neile@hls.com writes:
>In article <26912@adm.brl.mil>, bakerre@tawc1.eglin.af.mil (Baker, Robert E.) writes:
>>
>> 	I'm looking for source for a function that determines whether or not a
>> year is a leap year.  Anybody got it.  ADVthanksANCE.
>>
>The test for a leap year is simple; year mod 4 = 0.  There is no reason to
>add complexity as indicated in other postings.

>Neil Everhart

However, it's *wrong* unless you never have to deal with century years.
Those offering advice should give sufficient information
so that those advised can decide what sub-set is appropriate for their needs.
Maybe Mr Baker *is* concerned with century years working correctly, if so
your advice is misleading.

David Evans
david@ches.cs.vims.edu