From Jason Turner

[time.zone.db.access]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp8kq0cj9i/{from.md → to.md} +40 -0
tmp/tmp8kq0cj9i/{from.md → to.md} RENAMED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Time zone database access <a id="time.zone.db.access">[[time.zone.db.access]]</a>
2
+
3
+ ``` cpp
4
+ tzdb_list& get_tzdb_list();
5
+ ```
6
+
7
+ *Effects:* If this is the first access to the time zone database,
8
+ initializes the database. If this call initializes the database, the
9
+ resulting database will be a `tzdb_list` holding a single initialized
10
+ `tzdb`.
11
+
12
+ *Synchronization:* It is safe to call this function from multiple
13
+ threads at one time.
14
+
15
+ *Returns:* A reference to the database.
16
+
17
+ *Throws:* `runtime_error` if for any reason a reference cannot be
18
+ returned to a valid `tzdb_list` containing one or more valid `tzdb`s.
19
+
20
+ ``` cpp
21
+ const tzdb& get_tzdb();
22
+ ```
23
+
24
+ *Returns:* `get_tzdb_list().front()`.
25
+
26
+ ``` cpp
27
+ const time_zone* locate_zone(string_view tz_name);
28
+ ```
29
+
30
+ *Returns:* `get_tzdb().locate_zone(tz_name)`.
31
+
32
+ [*Note 1*: The time zone database will be initialized if this is the
33
+ first reference to the database. — *end note*]
34
+
35
+ ``` cpp
36
+ const time_zone* current_zone();
37
+ ```
38
+
39
+ *Returns:* `get_tzdb().current_zone()`.
40
+