Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!cs.umu.se!dvlhma From: dvlhma@cs.umu.se (Henrik Magnusson) Newsgroups: comp.lang.pascal Subject: Re: Leap year function Message-ID: <1991May18.123343.3434@cs.umu.se> Date: 18 May 91 12:33:43 GMT References: <26912@adm.brl.mil> <1991May17.074806.130@hls.com> Sender: news@cs.umu.se (News Administrator) Organization: Dep. of Info.Proc, Umea Univ., Sweden 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 Sorry but it year MOD 4= 0 isn't enough. 1900 isn't a leapyear, but 2000 is! /NeNNe ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Henrik Magnusson :: "How'd you puncture that tyre?" :: :: dvlhma@cs.umu.se :: "Ran over a milk bottle" :: :: :: "Didn't you see it?" :: :: Umeaa University, Sweden :: "Damn kid had it under his coat." :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::