diff --git a/src/corelib/time/qdatetime.cpp b/src/corelib/time/qdatetime.cpp index bfe74df1109..b15f6101943 100644 --- a/src/corelib/time/qdatetime.cpp +++ b/src/corelib/time/qdatetime.cpp @@ -348,6 +348,12 @@ static int fromOffsetString(QStringView offsetString, bool *valid) noexcept \reentrant \brief The QDate class provides date functions. + \compares strong + \compareswith strong std::chrono::year_month_day std::chrono::year_month_day_last \ + std::chrono::year_month_weekday std::chrono::year_month_weekday_last + These comparison operators are only available when using C++20. + \endcompareswith + A QDate object represents a particular day, regardless of calendar, locale or other settings used when creating it or supplied by the system. It can report the year, month and day of the month that represent the day with @@ -1949,6 +1955,8 @@ bool QDate::isLeapYear(int y) \brief The QTime class provides clock time functions. + \compares strong + A QTime object contains a clock time, which it can express as the numbers of hours, minutes, seconds, and milliseconds since midnight. It provides functions for comparing times and for manipulating a time by adding a number @@ -3556,6 +3564,8 @@ QDateTime::Data QDateTimePrivate::create(QDate toDate, QTime toTime, const QTime \reentrant \brief The QDateTime class provides date and time functions. + \compares weak + A QDateTime object encodes a calendar date and a clock time (a "datetime") in accordance with a time representation. It combines features of the QDate and QTime classes. It can read the current datetime from the system diff --git a/src/corelib/time/qtimezone.cpp b/src/corelib/time/qtimezone.cpp index ea6ca942bb1..00d0d3a79e5 100644 --- a/src/corelib/time/qtimezone.cpp +++ b/src/corelib/time/qtimezone.cpp @@ -80,6 +80,8 @@ Q_GLOBAL_STATIC(QTimeZoneSingleton, global_tz); \brief QTimeZone identifies how a time representation relates to UTC. + \compares equality + When dates and times are combined, the meaning of the result depends on how time is being represented. There are various international standards for representing time; one of these, UTC, corresponds to the traditional