From 95cdcba91acfb46edc558f659409df4c00dad5af Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Fri, 7 Sep 2012 15:45:39 +0200 Subject: 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 Reviewed-by: Thiago Macieira --- src/corelib/tools/qdatetime.cpp | 6 +++--- 1 file 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): -- cgit v1.2.3