Details
-
Task
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
None
-
All, C++20
-
8
-
678f6d472 (dev), dea91dbb5 (dev), 755733f59 (dev), 152cb77f8 (dev)
-
Foundation Sprint 109, Foundation Sprint 110, Foundation Sprint 111, Foundation Sprint 112, Foundation Sprint 113, Foundation Sprint 114, Foundation Sprint 115, Foundation Sprint 116
Description
In C++20, <tz.h> std::chrono::tzdb will provide access to the Olson database.
This should be sufficient to implement a back-end for QTimeZone; ultimately (some time in the late 2020s) we can hope for it to make all others redundant.
As discussed at QtCS2018 it's worth getting it implemented early,
- so that we'll have all the bugs out of it by that time;
and so that we notice (and address) any limitations in the <tz.h> API that we want fixed before it gets fossilized by standardization– too late for that.
Once we have this backend, the intent is to use it whenever it is supported, making the other backends redundant. This makes QTBUG-101730's call to include conversion from std::chrono::time_zone to QTimeZone trivial, provided we include a constructor from time_zone when using this backend.
Attachments
Issue Links
- is blocked by
-
QTBUG-107201 Spike: Look into std::chrono::tzdb's APIs, work out how much work QTBUG-68812 will take
- Closed
- relates to
-
QTBUG-115158 Time zone names and abbreviations are not localised
- Closed
-
QTBUG-88858 VxWorks 7 does not support any of the existing QTimeZone backends
- Reported
-
QTBUG-102042 Look into using libicu on Android (>= 12) for date/time support
- Reported
-
QTBUG-112909 Support all CLDR's various ways of naming time-zones
- Open
-
QTBUG-71036 Qt Core Changes in Qt 6
- Closed
-
QTBUG-91441 Support timezones on WASM
- Reported
-
QTBUG-102047 Windows SDK ships a subset of ICU and does not get picked up by CMake because of it
- Reported
-
QTBUG-112006 Separate out POSIX zone descriptors in QTimeZone backends
- Reported
-
QTBUG-101730 Research and implement QDateTime/etc. <=> C++20 calendaring integration
- Open
-
QTBUG-130085 Create an overview of C++20 features available in Qt
- In Progress
- replaces
-
QTBUG-102187 QTimeZone on Windows (w/o ICU) does not recognize some time zones reported by C++20
- Closed
- resulted in
-
QTBUG-127598 GCC's libstdc++ supplies QTimeZone's tzdb backend with bad data
- Open
- mentioned in
-
Page Loading...