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

Inconsistency in QDate documentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 5.0.2
    • 4.8.4, 5.0.1
    • Documentation
    • None
    • 958b621ba2f13535cd6873ceeaee096c13737549

      In QDate constructor, QDate::QDate(int y, int m, int d), it is stated that "Years 0 to 99 are interpreted as is, i.e., years 0-99." However, few rows up is text: "There is no year 0. Dates in that year are considered invalid."

      If year is 0, QDate returns false in isValid(), so QDate constructor documentation should be changed.

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

            mitch_curtis Mitch Curtis
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes