1.4 KiB
[time.zone.overview]
30 Time library [time]
30.11 Time zones [time.zone]
30.11.5 Class time_zone [time.zone.timezone]
30.11.5.1 Overview [time.zone.overview]
namespace std::chrono {class time_zone {public: time_zone(time_zone&&) = default; time_zone& operator=(time_zone&&) = default; // unspecified additional constructors string_view name() const noexcept; template sys_info get_info(const sys_time& st) const; template local_info get_info(const local_time& tp) const; template sys_time<common_type_t<Duration, seconds>> to_sys(const local_time& tp) const; template sys_time<common_type_t<Duration, seconds>> to_sys(const local_time& tp, choose z) const; template local_time<common_type_t<Duration, seconds>> to_local(const sys_time& tp) const; };}
A time_zone represents all time zone transitions for a specific geographic area.
time_zone construction is unspecified, and performed as part of database initialization.
[Note 1:
const time_zone objects can be accessed via functions such as locate_zone.
â end note]