qt5base-lts/tests/auto/corelib/time
Giuseppe D'Angelo 41a7546789 QDate(Time): add a addDuration method
To complement the existing addSecs / MSecs / etc., add a function
that takes any compatible std::chrono::duration.

QTime also features similar functions, but it's also "unique" in that
it uses modular arithmetic (it wraps around in case of "overflow").
I'm not so sure that adding durations to a QTime object therefore
makes sense, and I'm not doing it in this patch.

[ChangeLog][QtCore][QDate] Added addDuration().
[ChangeLog][QtCore][QDateTime] Added addDuration().

Change-Id: I02aa37ff024d7f56fa976dc8f4f73523bdba8d94
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-04-14 21:56:56 +02:00
..
qcalendar Revise (recently-added) yearSharingWeekDays() to take a QDate 2021-11-15 20:00:21 +01:00
qdate QDate(Time): add a addDuration method 2022-04-14 21:56:56 +02:00
qdatetime QDate(Time): add a addDuration method 2022-04-14 21:56:56 +02:00
qdatetimeparser Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtime Add new am/pm format-specifier that preserves locale's case 2021-09-08 20:28:40 +02:00
qtimezone QTimeZone: add construction from std::chrono::time_zone* 2022-04-12 20:26:55 +02:00
CMakeLists.txt Exclude autotest for INTEGRITY 2022-02-18 13:19:45 +00:00