30 lines
1.4 KiB
Markdown
30 lines
1.4 KiB
Markdown
[time.zone.overview]
|
|
|
|
# 30 Time library [[time]](./#time)
|
|
|
|
## 30.11 Time zones [[time.zone]](time.zone#overview)
|
|
|
|
### 30.11.5 Class time_zone [[time.zone.timezone]](time.zone.timezone#time.zone.overview)
|
|
|
|
#### 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<class Duration> sys_info get_info(const sys_time<Duration>& st) const; template<class Duration> local_info get_info(const local_time<Duration>& tp) const; template<class Duration> sys_time<common_type_t<Duration, seconds>> to_sys(const local_time<Duration>& tp) const; template<class Duration> sys_time<common_type_t<Duration, seconds>> to_sys(const local_time<Duration>& tp, choose z) const; template<class Duration> local_time<common_type_t<Duration, seconds>> to_local(const sys_time<Duration>& tp) const; };}
|
|
|
|
[1](#1)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L9425)
|
|
|
|
A time_zone represents all time zone transitions
|
|
for a specific geographic area[.](#1.sentence-1)
|
|
|
|
time_zone construction is unspecified,
|
|
and performed as part of database initialization[.](#1.sentence-2)
|
|
|
|
[*Note [1](#note-1)*:
|
|
|
|
const time_zone objects can be accessed
|
|
via functions such as locate_zone[.](#1.sentence-3)
|
|
|
|
â *end note*]
|