| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Do check: Day-of-Week after 1 Mar 2000 |
On , Arjen Lentz (2:282/123{at}fidonet) wrote:
> If you haven't done so already, test your day-of-week routing for 1 Mar
> 2000. It should be Wednesday.
> It's a rather good test date, 'cos it tests both general Y2K compliancy and
> the infamous leap-year thing. As a reminder, a leapyear is every 4 years,
> except centuries, except every 400 years. 1900 and 2100 aren't leapyears,
> but 2000 is.
> I had some faulty code myself, and while looking through piles of old code
> snippets for a replacement I found A LOT of code that was just as flaky.
> And that includes some snippets posted in C_ECHO, etc....
Arjen...
I'm glad you spelled "snippets" in lower case. All of the DOY,
YMD, and scalar date routines in the SNIPPETS archive are correct! Why
someone with access to it would want to reinvent the wheel incorrectly is
beyond me...
--- QM v1.00
* Origin: MicroFirm : Down to the C in chips (1:106/2000.6)SEEN-BY: 396/1 622/419 632/371 633/260 267 270 371 634/397 635/506 728 SEEN-BY: 639/252 670/213 218 @PATH: 30883/6 106/2000 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.