Skip to content

Commit 342b58d

Browse files
ediosyncraticQt Cherry-pick Bot
authored andcommitted
Make explicit the straightforward nature of QDate::daysTo()
Pick-to: 6.11 6.8 Change-Id: Icc9955a034d8f8fa31cd26907129f13f306a7126 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 20a2b62) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
1 parent 200c185 commit 342b58d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/corelib/time/qdatetime.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,6 +1593,7 @@ QDate QDate::addYears(int nyears) const
15931593
/*!
15941594
Returns the number of days from this date to \a d.
15951595
1596+
This is equivalent to \c{d.toJulianDay() - toJulianDay()}.
15961597
The result is negative if \a d is earlier than this date.
15971598
Returns 0 if either date is invalid.
15981599

0 commit comments

Comments
 (0)