diff options
author | Soroush Rabiei <soroush@ametisco.ir> | 2019-08-08 20:15:09 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2019-08-21 22:18:45 +0200 |
commit | 3e771a8b09cd5e46c4aff0e8bd28b946dd4e3fa5 (patch) | |
tree | dbb63086372aba40b5a7ad7ee46ee776bbea6f8c /tests/auto/corelib/time/qcalendar/tst_qcalendar.cpp | |
parent | 6743b174c036b7ad79cf55e98c917e9a5f4e19ef (diff) |
Add support for Julian and Milankovic calendars
These share their locale data with the Gregorian calendar, making them
virtually free to add. Still leave them out of the boot-strap build,
though.
[ChangeLog][QtCore][QCalendar] Added support for Julian and Milankovic
calendars. These are enabled by default, except in bootstrap builds.
Change-Id: I585045ed9e78c1e959957f6772b3e144093b701c
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/corelib/time/qcalendar/tst_qcalendar.cpp')
-rw-r--r-- | tests/auto/corelib/time/qcalendar/tst_qcalendar.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/corelib/time/qcalendar/tst_qcalendar.cpp b/tests/auto/corelib/time/qcalendar/tst_qcalendar.cpp index 3a410100f4..625567747e 100644 --- a/tests/auto/corelib/time/qcalendar/tst_qcalendar.cpp +++ b/tests/auto/corelib/time/qcalendar/tst_qcalendar.cpp @@ -167,6 +167,14 @@ void tst_QCalendar::specific_data() ADDROW(Gregorian, 1970, 1, 1, 1970, 1, 1); + // One known specific date, for each calendar +#ifndef QT_BOOTSTRAPPED + // Julian 1582-10-4 was followed by Gregorian 1582-10-15 + ADDROW(Julian, 1582, 10, 4, 1582, 10, 14); + // Milankovic matches Gregorian for a few centuries + ADDROW(Milankovic, 1923, 3, 20, 1923, 3, 20); +#endif + #undef ADDROW } |