From: Mitch Curtis Date: Fri, 7 Sep 2012 13:45:39 +0000 (+0200) Subject: Document that date/time formats without separators are unsupported. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95cdcba91acfb46edc558f659409df4c00dad5af;p=profile%2Fivi%2Fqtbase.git 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 --- diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp index 2a693da..3c37de9 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):