Day of week routine
Alan J Rosenthal
flaps at dgp.toronto.edu
Tue May 23 00:44:26 AEST 1989
In article <234 at zeek.UUCP> larry at 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."
More information about the Comp.lang.c
mailing list