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
parent
219ba05b2a
commit
917b4bec21
|
|
@ -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()
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue