Document that date/time formats without separators are unsupported.

The code is not handling formats like "HHmm ss" correctly, so it needs
to be documented until such support is provided.

Task-number: QTBUG-26067 QTBUG-26596
Change-Id: Ia456d8020e3e0aa9422e6e6987ac984f308facf9
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Mitch Curtis 2012-09-07 15:45:39 +02:00 committed by The Qt Project
parent fe966e5f48
commit 95cdcba91a

View File

@ -809,7 +809,7 @@ QString QDate::toString(Qt::DateFormat f) const
All other input characters will be ignored. Any sequence of characters that
are enclosed in single quotes will be treated as text and not be used as an
expression. Two consecutive single quotes ("''") are replaced by a singlequote
in the output.
in the output. Formats without separators (e.g. "ddMM") are currently not supported.
Example format strings (assuming that the QDate is the 20 July
1969):
@ -1572,7 +1572,7 @@ QString QTime::toString(Qt::DateFormat format) const
All other input characters will be ignored. Any sequence of characters that
are enclosed in single quotes will be treated as text and not be used as an
expression. Two consecutive single quotes ("''") are replaced by a singlequote
in the output.
in the output. Formats without separators (e.g. "HHmm") are currently not supported.
Example format strings (assuming that the QTime is 14:13:09.042)
@ -2639,7 +2639,7 @@ QString QDateTime::toString(Qt::DateFormat f) const
All other input characters will be ignored. Any sequence of characters that
are enclosed in single quotes will be treated as text and not be used as an
expression. Two consecutive single quotes ("''") are replaced by a singlequote
in the output.
in the output. Formats without separators (e.g. "HHmm") are currently not supported.
Example format strings (assumed that the QDateTime is 21 May 2001
14:13:09):