tmp/tmpzezr8azi/{from.md → to.md}
RENAMED
|
@@ -35,11 +35,12 @@ measure time since this epoch instead, one can add/subtract the constant
|
|
| 35 |
|
| 36 |
[*Example 1*:
|
| 37 |
`clock_cast<utc_clock>(sys_seconds{sys_days{1970y/January/1}}).time_since_epoch()`
|
| 38 |
is `0s`.
|
| 39 |
`clock_cast<utc_clock>(sys_seconds{sys_days{2000y/January/1}}).time_since_epoch()`
|
| 40 |
-
is `946'684'822s`,
|
|
|
|
| 41 |
— *end example*]
|
| 42 |
|
| 43 |
`utc_clock` is not a *Cpp17TrivialClock* unless the implementation can
|
| 44 |
guarantee that `utc_clock::now()` does not propagate an exception.
|
| 45 |
|
|
@@ -107,11 +108,11 @@ template<class charT, class traits, class Duration>
|
|
| 107 |
```
|
| 108 |
|
| 109 |
*Effects:* Equivalent to:
|
| 110 |
|
| 111 |
``` cpp
|
| 112 |
-
return os << format(STATICALLY-WIDEN<charT>("{:%F %T}"), t);
|
| 113 |
```
|
| 114 |
|
| 115 |
[*Example 1*:
|
| 116 |
|
| 117 |
``` cpp
|
|
|
|
| 35 |
|
| 36 |
[*Example 1*:
|
| 37 |
`clock_cast<utc_clock>(sys_seconds{sys_days{1970y/January/1}}).time_since_epoch()`
|
| 38 |
is `0s`.
|
| 39 |
`clock_cast<utc_clock>(sys_seconds{sys_days{2000y/January/1}}).time_since_epoch()`
|
| 40 |
+
is `946'684'822s`,
|
| 41 |
+
which is `10'957 * 86'400s + 22s`.
|
| 42 |
— *end example*]
|
| 43 |
|
| 44 |
`utc_clock` is not a *Cpp17TrivialClock* unless the implementation can
|
| 45 |
guarantee that `utc_clock::now()` does not propagate an exception.
|
| 46 |
|
|
|
|
| 108 |
```
|
| 109 |
|
| 110 |
*Effects:* Equivalent to:
|
| 111 |
|
| 112 |
``` cpp
|
| 113 |
+
return os << format(os.getloc(), STATICALLY-WIDEN<charT>("{:L%F %T}"), t);
|
| 114 |
```
|
| 115 |
|
| 116 |
[*Example 1*:
|
| 117 |
|
| 118 |
``` cpp
|