Time Zones
Get detailed knowledge on time zones.
We'll cover the following...
First of all, a time zone is a region, and its full history of the date, such as daylight saving time or leap seconds. The time zone library in C++20 is a complete parser of the IANA timezone database. The following table should give you a first idea of the new functionality.
Type | Description |
---|---|
std::chrono::tzdb |
Describes a copy of the IANA time-zone database |
std::chrono::tzdb_list |
Represents a linked list of the tzdb |
std::chrono::get_tzdb std::chrono::get_tzdb_list std::chrono::reload_tzdb std::chrono::remote_version |
Accesses and controls the global time-zone database |
std::chrono::locate_zone |
Locates the time zone based on its name |
std::chrono::current_zone |
Returns the current time zone |
std::chrono::time_zone |
Represents a time zone |
std::chrono::sys_info |
Represents information about a time zone at a specific time point |
std::chrono::local_info |
Represents information about a local time to UNIX time |