Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!dgp.toronto.edu!flaps From: flaps@dgp.toronto.edu (Alan J Rosenthal) Newsgroups: comp.lang.c Subject: Re: Day of week routine Keywords: Does anybody have this? Message-ID: <8905221444.AA01261@champlain.dgp.toronto.edu> Date: 22 May 89 14:44:26 GMT References: <234@zeek.UUCP> Followup-To: /dev/null Distribution: usa Organization: Dynamic Graphics Project, University of Toronto Lines: 14 In article <234@zeek.UUCP> larry@zeek.UUCP (Larry Podmolik) writes: >I need a C function that, given a date, would return what day of the >week it fell on. It's in almost all C libraries and it's called localtime(). Depending on which format your input date is in, you might want to use the new mktime() function. I've seen PD mktime()s go by. I can mail you non-PD versions of these functions for your personal use if you want. ajr -- "The winners write the history books."