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>
bb10
Mitch Curtis 2012-08-17 15:30:55 +02:00 committed by Qt by Nokia
parent 219ba05b2a
commit 917b4bec21
1 changed files with 2 additions and 2 deletions

View File

@ -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()
*/