Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!rutgers!cmcl2!adm!news From: DAVID@ches.cs.vims.edu Newsgroups: comp.lang.pascal Subject: Re: leap years Message-ID: <26932@adm.brl.mil> Date: 17 May 91 20:30:19 GMT Sender: news@adm.brl.mil Lines: 19 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