Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.lang.c Subject: Re: Leap Year Checker. Message-ID: <1990Sep23.013009.17582@virtech.uucp> Date: 23 Sep 90 01:30:09 GMT References: <9464@uhccux.uhcc.Hawaii.Edu> <24700010@sunc1> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 16 In article <24700010@sunc1> mccaugh@sunc1.cs.uiuc.edu writes: > > Ordinarily, a leap-year is a multiple of four, so thst -- given leap-year y -- > (y%4 == 0) ought to indicate if y designates a leap-year. Actually a leap year is a year that is a multiple of 4 but not a multiple of 100 unless it is also a multiple of 400. So, 1900 is not a leap year, 1904 is, 1996 is, 2000 is, 2100 is not, etc. -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170