qt6-bb10/tests/auto/corelib/time
Ivan Solovev c4f7dba81e QDate: make conversion from/to chrono types constexpr and noexcept
Add method stdSysDaysToJulianDay(), which implements the conversion
from std::chrono::sys_days to Julian Day in a constexpr and noexcept
manner. Use it in the fromStdSysDays() method instead of addDays(),
and also in all constructors from std::chrono types.
This allows all constructors to be constexpr and noexcept.

Simplify toStdSysDays() so that it could also be constexpr and
noexcept.

Add compile-time roundtrip tests between QDate and std::chrono types.

Fixes: QTBUG-118221
Change-Id: Id35a669430162f1932ad8d28b553af2fd7f5c6de
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-10-30 21:25:34 +02:00
..
qcalendar CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qdate QDate: make conversion from/to chrono types constexpr and noexcept 2023-10-30 21:25:34 +02:00
qdatetime Clarify the behavior of QDateTime around 24-hour transitions 2023-10-19 14:45:56 +02:00
qdatetimeparser Use localized time-zone abbreviations or offset 2023-10-27 10:52:48 +02:00
qtime CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qtimezone Report as available every QTimeZone(qint32).id() result 2023-10-30 12:43:14 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00