tmp/tmp4ky46l3o/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Member functions <a id="time.clock.tai.members">[[time.clock.tai.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 |
+
`tai_time`.
|
| 9 |
+
|
| 10 |
+
``` cpp
|
| 11 |
+
template<class Duration>
|
| 12 |
+
static utc_time<common_type_t<Duration, seconds>>
|
| 13 |
+
to_utc(const tai_time<Duration>& t) noexcept;
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
*Returns:*
|
| 17 |
+
|
| 18 |
+
``` cpp
|
| 19 |
+
utc_time<common_type_t<Duration, seconds>>{t.time_since_epoch()} - 378691210s
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
[*Note 1*:
|
| 23 |
+
|
| 24 |
+
``` cpp
|
| 25 |
+
378691210s == sys_days{1970y/January/1} - sys_days{1958y/January/1} + 10s
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
— *end note*]
|
| 29 |
+
|
| 30 |
+
``` cpp
|
| 31 |
+
template<class Duration>
|
| 32 |
+
static tai_time<common_type_t<Duration, seconds>>
|
| 33 |
+
from_utc(const utc_time<Duration>& t) noexcept;
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
*Returns:*
|
| 37 |
+
|
| 38 |
+
``` cpp
|
| 39 |
+
tai_time<common_type_t<Duration, seconds>>{t.time_since_epoch()} + 378691210s
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
[*Note 2*:
|
| 43 |
+
|
| 44 |
+
``` cpp
|
| 45 |
+
378691210s == sys_days{1970y/January/1} - sys_days{1958y/January/1} + 10s
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
— *end note*]
|
| 49 |
+
|