diff options
author | Mitch Curtis <mitch.curtis@nokia.com> | 2012-08-17 15:30:55 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-04 18:29:10 +0200 |
commit | 917b4bec215ba2edfc6581293f10cbe013e439b9 (patch) | |
tree | 6cece66a64101af7210144fa5c6e7b77634adf96 | |
parent | 219ba05b2a43e40feeb2bdebbf53d6da55f2dba2 (diff) |
Clarify QDateTime::secsTo and QDateTime::msecsTo documentation.
Changed:
"Returns 0 if either time is invalid."
to:
"Returns 0 if either datetime is invalid."
Change-Id: I52d291459f215c1bb7fc78e70eaac90b2498158b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
-rw-r--r-- | src/corelib/tools/qdatetime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp index 8accc32930..f0e2b3735c 100644 --- a/src/corelib/tools/qdatetime.cpp +++ b/src/corelib/tools/qdatetime.cpp @@ -2803,7 +2803,7 @@ qint64 QDateTime::daysTo(const QDateTime &other) const to Qt::UTC to ensure that the result is correct if one of the two datetimes has daylight saving time (DST) and the other doesn't. - Returns 0 if either time is invalid. + Returns 0 if either datetime is invalid. Example: \snippet code/src_corelib_tools_qdatetime.cpp 11 @@ -2834,7 +2834,7 @@ int QDateTime::secsTo(const QDateTime &other) const to Qt::UTC to ensure that the result is correct if one of the two datetimes has daylight saving time (DST) and the other doesn't. - Returns 0 if either time is null. + Returns 0 if either datetime is invalid. \sa addMSecs(), daysTo(), QTime::msecsTo() */ |