Date functionality
Richard Stead
stead at beno.CSS.GOV
Thu Aug 2 10:05:55 AEST 1990
In article <8931 at ubc-cs.UUCP>, buckland at cheddar.ucs.ubc.ca (Tony Buckland) writes:
> Let's see if I can get it right this time. The statement function
> following will work:
>
> DOW(ID,IM,IC,IY)=MOD((26*IM-2)/10+ID+IY+IY/4+IC/4-2*IC,7)
Ouch, smells like FORTRASH. Isn't this comp.lang.c? Steve Clamage
already posted the C version of this (Zeller's congruence). If you
want a function, #define it.
--Richard Stead
stead at seismo.css.gov
More information about the Comp.lang.c
mailing list