Adding Time and Date

Peter Fales psfales at ihlpl.UUCP
Mon Sep 8 12:21:17 AEST 1986


> 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



More information about the Comp.unix mailing list