diff options
author | David Fries <David@Fries.net> | 2017-07-23 19:56:55 -0500 |
---|---|---|
committer | David Fries <david@fries.net> | 2017-07-28 23:55:27 +0000 |
commit | 047e0e5118584149d0c6b1840644d902cfe548ef (patch) | |
tree | 3a3525375cd42a6a3e25205e85218de65f9ac4ed /src/corelib/global/qnamespace.qdoc | |
parent | 8b628bb25161d60d6af89fc9f4c3510b8a5da744 (diff) |
Docs: Fix day/year format in QDateTime
QDateTime takes dd and yyyy. It is confusing when the example format
strings don't work because they use DD YYYY, and it is a silent error
with the characters not getting substituted and can be easy to miss.
Improved Qt::ISODate, TZD isn't a format character so skip writing out
a bad format example.
Task-number: QTBUG-62111
Change-Id: Ia61d561074ae885fc0a99238d93cb34aaa9953bb
Reviewed-by: David Fries <david@fries.net>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/global/qnamespace.qdoc')
-rw-r--r-- | src/corelib/global/qnamespace.qdoc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc index 076b006235..4ddb89014e 100644 --- a/src/corelib/global/qnamespace.qdoc +++ b/src/corelib/global/qnamespace.qdoc @@ -672,8 +672,9 @@ be short, localized names. This is basically equivalent to using the date format string, "ddd MMM d yyyy". See QDate::toString() for more information. - \value ISODate \l{ISO 8601} extended format: either \c{YYYY-MM-DD} for dates or - \c{YYYY-MM-DDTHH:mm:ss}, \c{YYYY-MM-DDTHH:mm:ssTZD} (e.g., 1997-07-16T19:20:30+01:00) + \value ISODate \l{ISO 8601} extended format: either \c{yyyy-MM-dd} for dates or + \c{yyyy-MM-ddTHH:mm:ss} (e.g. 2017-07-24T15:46:29), or with a time-zone + suffix (Z for UTC otherwise an offset as [+|-]HH:mm) where appropriate for combined dates and times. \value ISODateWithMs \l{ISO 8601} extended format, including milliseconds if applicable. |