Re: HELP! YEAR 2000 BUG: How will it affect you?
Posted in 1996
> > The real problem I know about has to do with the day of the week. Normally, > leap year is every 4 years. However, because the earth takes 365 days 5 > hours and 46 minutes to circel the sun, adding a day every four years > overcompensates by a few minutes. To compensate for this overcorrection, > the Gregorian calendar skips leap year in centuries divisible by 400. All > the bios' written for PC's have a February 29th in the year 2000. That > throws off the date math and the day of week. Not exactly. years divisible by 4 are leap years. years divisible by 100 are NOT. years divisible by 400 ARE. the year 2000 will hence be a leap year. In other words all that code we have written over the past 30 years to worry about whether it's divisible by 100 or 400 are worrying about the year 2100. I sure hope my code isn't still running then - what a pain to support from beyond the pale. cheers j. ________________________________________________________________________ Jack Parker - Hewlett Packard, DMD/IS Boise, Idaho, USA jparker@boi.hp.com Currently on loan to PLD/PE ________________________________________________________________________ Outside of a dog a book is a man's best friend. Inside of a dog it's too dark to read. (Groucho Marx) ________________________________________________________________________ Any opinions expressed herein are my own and not those of my employers. ________________________________________________________________________