Path: utzoo!utgpu!news-server.csri.toronto.edu!dgp.toronto.edu!flaps Newsgroups: comp.lang.c From: flaps@dgp.toronto.edu (Alan J Rosenthal) Subject: Re: day of week Message-ID: <1990Sep22.184600.10813@jarvis.csri.toronto.edu> References: <1990Sep21.232813.2516@cbnewsm.att.com> Distribution: na Date: 22 Sep 90 22:46:01 GMT Lines: 5 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.