I have heard conflicting reports and I need to know if the year 2000 is a leap year. Half of my calenders have a February 29, and half don’t!
2000 has a Feb. 29 because, although it is a century year, it is devisable by 400.
Thems the rules. I didn’t write 'em.
This is one of those cases where knowing a little can be more dangerous than being completely ignorant. Hoping that isn’t the case with me, here goes…
Leap days are added in years divisible by 4 (i.e., 1992, 1996, etc.)
except
years divisible by 100 (i.e., 1800, 1900, etc.), which have no leap day,
*except[/]
years divisible by 400 (i.e., 1600, 2000, etc.) which do have a leap day.
So, yes, 2000 will have a February 29th.
There is another correction on an even longer period (4000 years, IIRC), but we won’t have to worry about that for a while.
It all has to do with the inconvenient fact that the earth’s orbital period (year) is not a simple multiple of its rotational period (day). Of course, there’s no reason for the two to be correlated at all.
And I think there was a thread in the recent past that covered all this, so if the search engine only worked, you could’ve looked it up. But it doesn’t, so you couldn’t.
…but when you get blue, and you’ve lost all your dreams, there’s nothing like a campfire and a can of beans!
Here’s an interesting Y2K story. I used to be responsible for a large C program written by a guy who really wasn’t a programmer. We hired a contractor to do a Y2K check on it, and he found a bug! It used the following logic to decide if a year is leap:
If the year is divisible by 4 and the year is not divisible by 100 then the year has Feb 29th.
So, it would have worked correctly in 1900 and 2100 (as if anyone cares) but it would have been off by a day in Y2K.
Here’s a site that explains it:
http://155.135.31.26/oliver/smt310-handouts/calendar.htm
Sue from El Paso
Experience is what you get when you didn’t get what you wanted.
Here’s yet another reference:
Thanks for the help everyone, especially Sue. I did try to do an archive search(useless!), and a news report mistakenly reported that it wasn’t a leap year.
People frequently screw up. Over the years, I’ve seen a distressing number of programs that said, “If the last digit of the year is divisible by four, it’s a leap year,” which, of course, was blowing up both the first time I encountered it (in 1970) and the next time (in 1990).
John W. Kennedy
“Compact is becoming contract; man only earns and pays.”
– Charles Williams
I’ll point out the bit of trivia I point out every time this comes up. This is the first time the 400-year exception-to-the-exception has ever come up in North America, and only the second time it has come up since the invention of the Gregorian Calendar. So it’s only to be expected that it’s a little unfamiliar.
Actually, it’s an exception (LY if divisible by 400) to an exception (not LY if divisible by 100) to an exception (LY if divisible by 4) of the rule (365 days/year).
I’ve never seen anyone mention the 100 year exception-squared without also mentioning the 400 year exception-cubed, so I was frankly pretty skeptical about the whole problem. I’m amazed that someone actually ran into a program where the programmer knew about one but not the other.