Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!kth.se!ugle.unit.no!nuug!ulrik!gi!oep From: oep@gi.uio.no (Oeyvind Pedersen) Newsgroups: comp.lang.pascal Subject: Re: Leap year function Message-ID: <1991Jun6.083418.9559@ulrik.uio.no> Date: 6 Jun 91 08:34:18 GMT References: <4183@jethro.Corp.Sun.COM> Sender: news@ulrik.uio.no (Mr News) Reply-To: oep@gi.uio.no (Oeyvind Pedersen) Organization: University of Oslo, Norway Lines: 30 Nntp-Posting-Host: gi.no In article , baillie@mullauna.cs.mu.OZ.AU (Stephen Baillie) writes: > It was because of a discrepancy between the number of days in a year in the > old (Julian?) Calendar, ie one without leap years, and the actual passage > of the earth around the sun (did I get that the right way around? ;-> ) > > The year was out of sync with the sun by 11 days, so at the same time as > introducing leap years they cut a few days to make things line up again. > Caused quite a stir among the superstitious peasants who thought they > were losing a few days out of their lives! > > I think that pre-1722 there were no leap years, so your program may try to > compensate for this too. The Julian calendar HAD leap years. The problem was that it had too many - 25 in each century, while the Gregorian calendar has 24.25, that is 24 in three centuries and 25 in the fourth. That makes an average year 365.2425 days long instead of 365.25, while the "real" year, i.e the time the earth uses in one lap is about 365.2422 days. Oeyvind.