I'm sure you do.Dude wrote:This is what I commented in some source code a few years ago:Little John wrote:I never have read the number 3600 in this context
Searching Google with that phrase doesn't show anything anymore, but I trust my comment.Code: Select all
; Check if February of the year "y" is a Leap Year. Note that the year ; 3600 is a one-off special case (www.google.com/search?q=leap+year+faq). ok=Bool((y%4=0 And (y%100<>0 Or y%400=0) And y<>3600))
However, I'm sorry to say that for me (and probably also for the rest of the world) private self-written comments of a single person are not of relevance in a context like this. I prefer information from good textbooks or other reliable sources.
Using 3600 was/is not super-cautious, but wrong.Dude wrote:However, I concede now that 3600 doesn't really need to be checked. I was being super-cautious, I guess.
The rules for calculating dates in the Gregorian calendar are nowadays defined by ISO. Here they are again:
Source: http://web.mit.edu/jmorzins/www/iso8601/y2kdat.htmThe Gregorian Calendar says that if the year is divisible by 4 or 400 it is a
leap year. If it is divisible by 100 (but not 400) it is not a leap year.
The number 3600 does not occur anywhere in that document.
It is true that this rule for calculating leap years will not yield satisfactory results forever. So people have thought about modifications, e.g.
Source: https://en.wikipedia.org/wiki/Gregorian ... r#AccuracyIn the 19th century, Sir John Herschel proposed a modification to the Gregorian calendar with 969 leap days every 4000 years, instead of 970 leap days that the Gregorian calendar would insert over the same period.[79] This would reduce the average year to 365.24225 days. Herschel's proposal would make the year 4000, and multiples thereof, common instead of leap. While this modification has often been proposed since, it has never been officially adopted
Again no occurrence of 3600. Maybe someone made another proposal, that contained 3600 as additional divisor.
But in any case there is a huge difference between an existing standard and a proposal for modifying it.