Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-92046

Description of Julian calendar is wrong

    XMLWordPrintable

Details

    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ablasche Alex Blasche
            jamadagni Shriramana Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes