From: Ronald Landheer Newsgroups: comp.os.msdos.djgpp Subject: Re: strftime: Need Help with Time Offsets Date: Fri, 12 Jan 2001 23:04:27 +0100 Lines: 29 Message-ID: <3A5F7F6B.E805C7CE@libertysurf.fr> References: <20010109085555 DOT C20595 AT kendall DOT sfbr DOT org> NNTP-Posting-Host: dyn-213-36-108-128.ppp.libertysurf.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news6.isdnet.net 979337242 5951 213.36.108.128 (12 Jan 2001 22:07:22 GMT) X-Complaints-To: abuse AT isdnet DOT net NNTP-Posting-Date: 12 Jan 2001 22:07:22 GMT X-Mailer: Mozilla 4.7 [nl] (Win98; U) X-Accept-Language: nl To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Jason Green schreef: > > 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. The Swing library has implemented a bunch of algorithms to help solve this. It is available in the RLSystems Software Development Kit at - for DJGPP If you need the source code, mail me at info AT rlsystems DOT net, I will send it to you w/ explanation. Anyways, the Swing library takes care of leap years, day of week, etc. etc. etc. Greetz! Ronald