Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!caip!brl-adm!brl-smoke!smoke!lcc.jbrown@LOCUS.UCLA.EDU From: lcc.jbrown@LOCUS.UCLA.EDU (Jordan Brown) Newsgroups: net.unix Subject: Dates and Times Message-ID: <3507@brl-smoke.ARPA> Date: Wed, 3-Sep-86 07:36:10 EDT Article-I.D.: brl-smok.3507 Posted: Wed Sep 3 07:36:10 1986 Date-Received: Wed, 3-Sep-86 20:55:00 EDT Sender: news@brl-smoke.ARPA Lines: 10 > Is there also a simple routine that will allow me to calculate > what day of the week an arbitrary date falls on? Once you have Julian days (or any other days-since-some-base-date scheme) you just add some appropriate small constant (0-6) and take it modulo 7. The small constant depends on what day of the week your base date is; I usually just fiddle with it until I get today right. (I can NEVER remember what the right value is. I THINK that for Julian the right value is 6, but am not at all sure.)