Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.0.1
-
None
-
edfab62cb02781b1c5a5e433f6f64af285dfa0f0 (qt/qtbase/dev) 05dce8cc812d700df6118ef2efcb6c1d0e18e5c4 (qt/tqtc-qtbase/tqtc/lts-5.15) 84364d8099708dd3ed8a0f06b344dd8e69f2f9b1 (qt/qtbase/6.1)
Description
https://doc.qt.io/qt-6/qcalendar.html#System-enum
gives for QCalendar::System::Julian the description:
An ancient Roman calendar with too few leap years.
This should instead read:
An ancient Roman calendar with too many leap years.
This is because the Julian calendar inserts a leap day every four years always, but Gregorian (the default which is being compared against) doesn't insert the same if the year number is divisible by 100 unless it is also divisible by 400. Hence after 1600, the Gregorian calendar does not have a leap day in 1700, 1800, 1900 but only in 2000. The Julian calendar OTOH has leap days in those years. Hence it actually has too many leap years and not too few.**
For more details: https://en.wikipedia.org/wiki/Gregorian_calendar