Date: Mon, 6 Jan 2020 16:28:10 +0900
Hi,
I have a question. Can we use "UTC" timezone?
The follow function specification uses "UTC" timezone.
N4830
27.11.6 Class template zoned_traits
[time.zone.zonedtraits]
static const time_zone* default_zone();
Returns: std::chrono::locate_zone("UTC").
However, I can't find "UTC" timezone name or link in timezone database.
https://github.com/eggert/tz
FYI, Howard Hinnant reference implementation specialize "UTC" timezone name.
https://github.com/HowardHinnant/date/blob/4c951652988b51c6adcf8e95646792a750994829/src/tz.cpp#L499
Is "UTC" timezone name is valid for chrono library?
I have a question. Can we use "UTC" timezone?
The follow function specification uses "UTC" timezone.
N4830
27.11.6 Class template zoned_traits
[time.zone.zonedtraits]
static const time_zone* default_zone();
Returns: std::chrono::locate_zone("UTC").
However, I can't find "UTC" timezone name or link in timezone database.
https://github.com/eggert/tz
FYI, Howard Hinnant reference implementation specialize "UTC" timezone name.
https://github.com/HowardHinnant/date/blob/4c951652988b51c6adcf8e95646792a750994829/src/tz.cpp#L499
Is "UTC" timezone name is valid for chrono library?
Received on 2020-01-06 01:30:52