5 ms·
Funny story about the year 2000 that does not involve Y2K: "Everyone" knows that leap years occur on year divisible by 4 ('first rule'). The second rule to the
by throw0101c 3y ago
Funny story about the year 2000 that does not involve Y2K:
"Everyone" knows that leap years occur on year divisible by 4 ('first rule'). The second rule to them is that if a year is divisible by 100 (1800, 1900, …2000), then it is not a leap year.
So a lot of folks did not have their systems/software have February 29 in the year 2000.
But there is a third rule: if the year is divisible by 400 (like 1600… and 2000) it is a leap year.
* https://en.wikipedia.org/wiki/Leap_year#Gregorian_calendar https://en.wikipedia.org/wiki/Leap_year#Gregorian_calendar
* https://en.wikipedia.org/wiki/Gregorian_calendar#Accuracy https://en.wikipedia.org/wiki/Gregorian_calendar#Accuracy
Lots of folks missed the 'third rule'. Hilarity ensued.
* https://en.wikipedia.org/wiki/Year_2000_problem#On_29_February_and_1_March_2000 https://en.wikipedia.org/wiki/Year_2000_problem#On_29_Februa...
- PopAlongKid 3y ago>Everyone" knows that leap years occur on year divisible by 4 ('first rule'). Actually, I think that's the only rule most people know. I think the "funny story" is actually the opposite: most people were treating 2000 as an ordinary every-4-year leap year, did not know about the 100 divisor, but were inadvertently saved by the 400 divisor. The Wikipedia link does document some cases of what you say (yes on the 2nd rule, omitting the 3rd rule) but I think there were far, far more cases of simply assuming only the 1st rule applied.
- delecti 3y agoAgreed. The fact that y2k was even a concern in the first place suggests that vanishingly few systems were made with century-scale foresight.
- deleted 3y ago[deleted]
- manojlds 3y agoWho are these people and did they not learn these in school?
- ginko 3y agoRelated: https://www-users.york.ac.uk/~ss44/joke/decly.htm https://www-users.york.ac.uk/~ss44/joke/decly.htm
- throw0101c 3y ago> The calendar of the Assyrians, for example […] LOL.
- listenallyall 3y agoUmm, this does involve Y2K. It's the title of the Wikipedia entry you linked to.
- satiated_grue 3y agoThe 1582 document establishing the Gregorian Calendar, "Inter Gravissimas", specifically says that Y2K is leap. https://en.wikisource.org/wiki/Translation:Inter_gravissimas https://en.wikisource.org/wiki/Translation:Inter_gravissimas "Next, so that the equinox will no longer recede in future from the twelfth day before the Kalends of April [i.e. 21 March], we decree: that the bissextile day every fourth year shall continue, as the custom is now, except in centurial years, although these were always bissextiles before, and we wish the year 1600 to be bissextile as well; after that, however, the centurial years that follow shall not all be bissextiles, only every fourth centurial year shall be bissextile, thus the years 1700, 1800 and 1900 shall not be bissextile. But in the year 2000, the bissextile day shall be added in the usual way, with February containing 29 days; and then the same order of leaving out and adding the bissextile day shall be observed in each period of 400 years ever after."
- sebastialonso 3y agoWow the way this is presented is super confusing, to the point that your description includes a contradiction. Specifically, of a year is divisible by 400 it's also divisible by 100, so it's both a leap year and not leap year! Instead of showing rules as a linear list, I'd suggest it's easier to visualise it as a tree, or simpler still, as a series of nested ifs.
- SamBam 3y agoI mean, that contradiction is also in the first two rules. It's a leap year if it's divisible by 4, but not if it's divisible by 100, so what about 200? Best to describe it as a flowchart * Is the year divisible by 400? YES -> Leap year * NO -> Is the year divisible by 100? YES -> Not leap year * NO -> Is the year divisible by 4? YES -> Leap year * NO -> Not leap year
- stoltzmann 3y agoPedantic but this drives me nuts - this algorithm has to do 3 divisions for almost every year. If you flip it upside down, it's significantly faster. * Is the year divisible by 4? NO -> not leap year * YES -> Is the year divisible by 100? NO -> leap year * YES -> Is the year divisible by 400? NO -> not leap year * YES -> leap year This way you do only 1 division for 75% of years.
- daveguy 3y agoFortunately, it's not a very big N. ;)
- throw0101c 3y ago> Instead of showing rules as a linear list, I'd suggest it's easier to visualise it as a tree, or simpler still, as a series of nested ifs. Feel free to post a comment with ASCII art or (pseudo-)code. :)
- PopAlongKid 3y ago