From Jason Turner

[time.clock.gps.members]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp_6t3d60c/{from.md → to.md} +49 -0
tmp/tmp_6t3d60c/{from.md → to.md} RENAMED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Member functions <a id="time.clock.gps.members">[[time.clock.gps.members]]</a>
2
+
3
+ ``` cpp
4
+ static time_point now();
5
+ ```
6
+
7
+ *Returns:* `from_utc(utc_clock::now())`, or a more accurate value of
8
+ `gps_time`.
9
+
10
+ ``` cpp
11
+ template<class Duration>
12
+ static utc_time<common_type_t<Duration, seconds>>
13
+ to_utc(const gps_time<Duration>& t) noexcept;
14
+ ```
15
+
16
+ *Returns:*
17
+
18
+ ``` cpp
19
+ gps_time<common_type_t<Duration, seconds>>{t.time_since_epoch()} + 315964809s
20
+ ```
21
+
22
+ [*Note 1*:
23
+
24
+ ``` cpp
25
+ 315964809s == sys_days{1980y/January/Sunday[1]} - sys_days{1970y/January/1} + 9s
26
+ ```
27
+
28
+ — *end note*]
29
+
30
+ ``` cpp
31
+ template<class Duration>
32
+ static gps_time<common_type_t<Duration, seconds>>
33
+ from_utc(const utc_time<Duration>& t) noexcept;
34
+ ```
35
+
36
+ *Returns:*
37
+
38
+ ``` cpp
39
+ gps_time<common_type_t<Duration, seconds>>{t.time_since_epoch()} - 315964809s
40
+ ```
41
+
42
+ [*Note 2*:
43
+
44
+ ``` cpp
45
+ 315964809s == sys_days{1980y/January/Sunday[1]} - sys_days{1970y/January/1} + 9s
46
+ ```
47
+
48
+ — *end note*]
49
+