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

Inconsistency in QDate documentation

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes