Yes, this question can be considered on topic. Here's why:
We have a lot of questions on the subject of date, time, datetime, timezone. This one is certainly about dates (and in fact it is tagged so). Of course it is a very particular question, and not many programmers will be interested in it. Still, some might be. The OP is just curious, but someone else might need the answer for a program he is working on. Certainly, the author of the original article did find this problem, or it wouldn't be in the list. How can we say it is not about programming?
One more argument: what other professions would ever be interested in the answer to this question? Would a taxi driver, a dentist, a clerk, a photographer, a soldier, a farmer be interested in this? No way. But a programmer, in some cases, would. So we can say it is about programming. Of course, probably the category that would find this question the most interesting is historians. Still, that doesn't exclude us.
The fact that only a few users will ever be interested in this shouldn't be a reason for closing, nor for downvoting. This site is full of "please-debug-my-code" questions that are useful to the OP only, and, provided that the question is clear, has a MCVE and shows some effort, that's fine.
And in any case it is an interesting question, why should we ban it? Does its presence harm the site in any way? Would it really bring confusion or lower the quality of the site? No. So let's keep it.
0
in the Gregorian calendar. That might or might not be relevant in a programming context. For example, C'sgmtime()
andlocaltime()
functions typically assume that the years-1
,0
, and1
are consecutive (for implementations with 64-bittime_t
), with the year-1
corresponding to 2 BCE.I believe this question is on topic because it is about lang-agnostic concepts that are important to know to be a good programmer.
has dragged me back in. It's just wrong. Many programmers never have to worry about dates at all. Very few programmers need to worry about dates at the level of "is every int a year". Step 1 should be built in system date times. Once they fail you you must be getting pretty specialized. I stand by my orig. comment "Interesting question but off topic"