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: 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 > ...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