🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9383

Re: Calendar Functions (simpler leap year calculation)

#9383
From: Henry Spencer
Date: Thu, 25 Sep 1986 00:03
10 lines
1046 bytes
> ...If you really want an algorithm for all years,
> you then need to also test for years divisible by 4000...

No, there is no 4000-year correction.  There's 4 and 400 and that's it
at present.  Some twiddling will eventually become necessary, but it
won't be anything as simple and uniform as leap millenia -- the function
we are trying to approximate is not linear on that time scale.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,decvax,pyramid}!utzoo!henry
Technical Details
Message-ID: <7136@utzoo.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!henry
References: <206@cascade.STANFORD.EDU> <1229@loral.UUCP>, <34@vianet.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!henry
From: henry@utzoo.UUCP (Henry Spencer)
Newsgroups: net.lang.c
Subject: Re: Calendar Functions (simpler leap year calculation)
Message-ID: <7136@utzoo.UUCP>
Date: Wed, 24-Sep-86 20:03:37 EDT
Article-I.D.: utzoo.7136
Posted: Wed Sep 24 20:03:37 1986
Date-Received: Wed, 24-Sep-86 20:03:37 EDT
References: <206@cascade.STANFORD.EDU> <1229@loral.UUCP>, <34@vianet.UUCP>
Organization: U of Toronto Zoology
Lines: 10