Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!tut!ra!uwasa.fi!ts From: ts@uwasa.fi (Timo Salmi LASK) Newsgroups: comp.lang.pascal Subject: Re: I need a date :) please help Message-ID: <1990Apr7.122351.26993@uwasa.fi> Date: 7 Apr 90 12:23:51 GMT References: <13000001@uxh.cso.uiuc.edu> Organization: University of Vaasa Lines: 24 In article <13000001@uxh.cso.uiuc.edu> mead@uxh.cso.uiuc.edu writes: >QUERY: Does anyone know of *any* source for an intelligent algorythm >for getting the day ('Monday, Tuesday, ...') from the date (4/3/90). >My PC does it like lightning each time I issue the 'DATE' command, and >if IBM can do it, anyone can - right? :) Textbooks or whatever are >fine, but please don't direct me to existing software unless it's PD >source code (in BASIC, C, Pascal, or FORTRAN). Thanks. Ok, I won't direct you anywhere :-), but if anyone else has the same problem, there is an unit in (/pc/ts/)tspas18.arc to do just this. Available by anonymous ftp from chyde.uwasa.fi. ... I'll backtrack a bit. Also see Press & Flannery & al: Numerical Recipes, Cabridge University Press. Hope this helps. (Incidentally, this has been a very frequently asked question, but for some reason it has been dormant for a few months, kinda lying low, biding its time, or whatever. You wouldn't believe how many messages we had about this way back when.) ................................................................... Prof. Timo Salmi (Moderating at anon. ftp site 128.214.12.3) School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun