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

Inconsistency in QDate documentation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 4.8.4, 5.0.1
    • Fix Version/s: 5.0.2
    • Component/s: Documentation
    • Labels:
      None
    • Commits:
      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

            Assignee:
            mitch_curtis Mitch Curtis
            Reporter:
            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