From 917b4bec215ba2edfc6581293f10cbe013e439b9 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Fri, 17 Aug 2012 15:30:55 +0200 Subject: [PATCH] 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 Reviewed-by: Frederik Gladhorn --- src/corelib/tools/qdatetime.cpp | 4 ++-- 1 file 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() */