day of week

Alan J Rosenthal flaps at dgp.toronto.edu
Sun Sep 23 08:46:01 AEST 1990


Given the number of days since a day which is a Thursday, the day number of the
week is simply:
	(number_of_days + 4) % 7

No need for Zeller's congruence.



More information about the Comp.lang.c mailing list