Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!caip!sri-spam!nike!ucbcad!ucbvax!hplabs!qantel!ihnp4!ihlpl!psfales From: psfales@ihlpl.UUCP (Peter Fales) Newsgroups: net.unix Subject: Re: Re: Re: Adding Time and Date Message-ID: <1275@ihlpl.UUCP> Date: Sun, 7-Sep-86 22:21:17 EDT Article-I.D.: ihlpl.1275 Posted: Sun Sep 7 22:21:17 1986 Date-Received: Mon, 8-Sep-86 05:58:14 EDT References: <118@funvax.UUCP> <492@hdsvx1.UUCP> <127@rayssd.UUCP> Organization: AT&T Bell Laboratories Lines: 16 > trivial (although admittedly not very difficult). What I dont understand > is why no one has suggested using Zeller's congruence? Is this simple > yet extremely useful algorithm considered second rate? Or is it just > that no one is familiar with it? I dont have the source code in front > of me but basically the algorithm takes the month, day of the month, > century, and year of the century and outputs the day of the week. The > whole thing is only a couple of lines of C code. If anybody is > interested and doesn't have a reference available with the algorithm > in it, send me mail and I will send you a working version of the algorithm > written in C. Seems like a perfect candidate for posting to the net I'd say! (or mail me a copy - Thanks) Peter Fales ...ihnp4!ihlpl!psfales