From: Jason Green Newsgroups: comp.os.msdos.djgpp Subject: Re: strftime: Need Help with Time Offsets Date: Thu, 11 Jan 2001 21:56:51 +0000 Organization: Customer of Energis Squared Lines: 15 Message-ID: References: <20010109085555 DOT C20595 AT kendall DOT sfbr DOT org> NNTP-Posting-Host: modem-67.tellurium.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsg1.svr.pol.co.uk 979250210 29787 62.136.43.67 (11 Jan 2001 21:56:50 GMT) NNTP-Posting-Date: 11 Jan 2001 21:56:50 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Agent 1.7/32.534 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com JT Williams wrote: > Formulae for leap year, day of week, day of year, day of Easter, > etc., etc., etc. and much much more are all given in Jean Meeus' > "Astronomical Algorithms" and could save much effort here and/or > provide a check on one's own algorithms. I spent some time searching on the web for this. There are plenty of references to Jean Meeus' work, even some source code, but I couldn't find anything to help. Note that it is not particularly calculation of week numbers that is the problem, DJGPP already does that. The problem is [was] that the required calculation sometimes results with the last few days of the year as week 01 and/or the first few days as week 52 or 53.