Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!husc6!panda!genrad!decvax!decwrl!amdcad!amdimage!prls!philabs!linus!raybed2!applicon!hdsvx1!hoffman From: hoffman@hdsvx1.UUCP Newsgroups: net.unix Subject: Re: Re: Adding Time and Date Message-ID: <492@hdsvx1.UUCP> Date: Thu, 4-Sep-86 14:20:24 EDT Article-I.D.: hdsvx1.492 Posted: Thu Sep 4 14:20:24 1986 Date-Received: Mon, 8-Sep-86 20:53:01 EDT References: <118@funvax.UUCP> Organization: Schlumberger-HDS, Houston TX Lines: 14 > Is there also a simple routine that will allow me to calculate > what day of the week an arbitrary date falls on? > > Bruce Real simple. Just take any day as a reference point, note its Julian Day and the day of the week on which it fell. To find the day of the week for some other day, take the difference between the two Julian Days, mod 7. -- Richard Hoffman | "Oh life is a wonderful cycle of song, Schlumberger Well Services | A medley of extemporanea. hoffman%hdsvx1@slb-doll.csnet | And Love is a thing that can never go wrong PO Box 2175, Houston, TX 77252 | ... And I am Marie of Roumania." --D. PARKER