summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJens Georg <jensg@openismus.com>2011-04-13 08:14:44 (GMT)
committerQt Commercial Integration <QtCommercial@digia.com>2012-01-31 10:24:40 (GMT)
commitc9ebb7df661405d2d4b34961834190c83d94a93d (patch)
tree14a4f992683396e0a65fb2cf700a83f9f3fac939 /src
parent59baa0223e9198e28d19985147f478c991db49fc (diff)
downloadQt-c9ebb7df661405d2d4b34961834190c83d94a93d.zip
Qt-c9ebb7df661405d2d4b34961834190c83d94a93d.tar.gz
Qt-c9ebb7df661405d2d4b34961834190c83d94a93d.tar.bz2
Update documentation of QDateTime::toString
Merge-request: 1149 Reviewed-by: Zeno Albisser <zeno.albisser@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qdatetime.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp
index 3889807..946e721 100644
--- a/src/corelib/tools/qdatetime.cpp
+++ b/src/corelib/tools/qdatetime.cpp
@@ -2460,7 +2460,11 @@ void QDateTime::setTime_t(uint secsSince1Jan1970UTC)
If the \a format is Qt::ISODate, the string format corresponds
to the ISO 8601 extended specification for representations of
- dates and times, taking the form YYYY-MM-DDTHH:MM:SS.
+ dates and times, taking the form YYYY-MM-DDTHH:MM:SS[Z|[+|-]HH:MM],
+ depending on the timeSpec() of the QDateTime. If the timeSpec()
+ is Qt::UTC, Z will be appended to the string; if the timeSpec() is
+ Qt::OffsetFromUTC the offset in hours and minutes from UTC will
+ be appended to the string.
If the \a format is Qt::SystemLocaleShortDate or
Qt::SystemLocaleLongDate, the string format depends on the locale