Date conversion question
mkhaw at teknowledge-vaxc.UUCP
mkhaw at teknowledge-vaxc.UUCP
Wed Feb 25 05:07:20 AEST 1987
Is there a clever formula that will give you the day of the week (as a number
between 1 and 7 or 0 and 6) given year, month, and date?
I've only been able determine day of week from date by using a reference date
like: Jan. 1, 1972, was a Saturday -- and computing the offset from it (and
keeping track of leap days).
Mike Khaw
--
internet: mkhaw at teknowledge-vaxc.arpa
usenet: {hplabs|sun|ucbvax|decwrl|sri-unix}!mkhaw%teknowledge-vaxc.arpa
voice: 415/424-0500
USnail: Teknowledge, Inc., 1850 Embarcadero Rd., POB 10119, Palo Alto, CA 94303
More information about the Comp.unix.wizards
mailing list