Correct QDate and QTime documentation.

Task-number: QTBUG-30055

Change-Id: I94c8e023f5e3d23ff2f1c74d0763b1c825deb3d1
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
This commit is contained in:
Mitch Curtis 2013-03-08 15:52:27 +01:00 committed by The Qt Project
parent c7191d3e21
commit 958b621ba2

View File

@ -265,8 +265,7 @@ static QString fmtDateTime(const QString& f, const QTime* dt = 0, const QDate* d
If the specified date is invalid, the date is not set and If the specified date is invalid, the date is not set and
isValid() returns false. isValid() returns false.
\warning Years 0 to 99 are interpreted as is, i.e., years \warning Years 1 to 99 are interpreted as is. Year 0 is invalid.
0-99.
\sa isValid() \sa isValid()
*/ */
@ -1488,10 +1487,7 @@ int QTime::msec() const
If \a format is Qt::ISODate, the string format corresponds to the If \a format is Qt::ISODate, the string format corresponds to the
ISO 8601 extended specification for representations of dates, ISO 8601 extended specification for representations of dates,
which is also HH:MM:SS. (However, contrary to ISO 8601, dates which is also HH:MM:SS.
before 15 October 1582 are handled as Julian dates, not Gregorian
dates. See \l{QDate G and J} {Use of Gregorian and Julian
Calendars}. This might change in a future version of Qt.)
If the \a format is Qt::SystemLocaleShortDate or If the \a format is Qt::SystemLocaleShortDate or
Qt::SystemLocaleLongDate, the string format depends on the locale Qt::SystemLocaleLongDate, the string format depends on the locale