summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@nokia.com>2012-09-07 15:45:39 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-21 02:44:22 +0200
commit95cdcba91acfb46edc558f659409df4c00dad5af (patch)
tree1d246193c7fc9a009ea8ccaba248de1ac9198cb4
parentfe966e5f48da975bfa63bb547398153b74fbd534 (diff)
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>
-rw-r--r--src/corelib/tools/qdatetime.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp
index 2a693daa59..3c37de9208 100644
--- a/src/corelib/tools/qdatetime.cpp
+++ b/src/corelib/tools/qdatetime.cpp
@@ -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):