From Jason Turner

[time.zone.overview]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpahf45293/{from.md → to.md} +38 -0
tmp/tmpahf45293/{from.md → to.md} RENAMED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Overview <a id="time.zone.overview">[[time.zone.overview]]</a>
2
+
3
+ ``` cpp
4
+ namespace std::chrono {
5
+ class time_zone {
6
+ public:
7
+ time_zone(time_zone&&) = default;
8
+ time_zone& operator=(time_zone&&) = default;
9
+
10
+ // unspecified additional constructors
11
+
12
+ string_view name() const noexcept;
13
+
14
+ template<class Duration> sys_info get_info(const sys_time<Duration>& st) const;
15
+ template<class Duration> local_info get_info(const local_time<Duration>& tp) const;
16
+
17
+ template<class Duration>
18
+ sys_time<common_type_t<Duration, seconds>>
19
+ to_sys(const local_time<Duration>& tp) const;
20
+
21
+ template<class Duration>
22
+ sys_time<common_type_t<Duration, seconds>>
23
+ to_sys(const local_time<Duration>& tp, choose z) const;
24
+
25
+ template<class Duration>
26
+ local_time<common_type_t<Duration, seconds>>
27
+ to_local(const sys_time<Duration>& tp) const;
28
+ };
29
+ }
30
+ ```
31
+
32
+ A `time_zone` represents all time zone transitions for a specific
33
+ geographic area. `time_zone` construction is unspecified, and performed
34
+ as part of database initialization.
35
+
36
+ [*Note 1*: `const time_zone` objects can be accessed via functions such
37
+ as `locate_zone`. — *end note*]
38
+