tmp/tmpuo5hhga1/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Class `local_info` <a id="time.zone.info.local">[[time.zone.info.local]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
namespace std::chrono {
|
| 5 |
+
struct local_info {
|
| 6 |
+
static constexpr int unique = 0;
|
| 7 |
+
static constexpr int nonexistent = 1;
|
| 8 |
+
static constexpr int ambiguous = 2;
|
| 9 |
+
|
| 10 |
+
int result;
|
| 11 |
+
sys_info first;
|
| 12 |
+
sys_info second;
|
| 13 |
+
};
|
| 14 |
+
}
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
[*Note 1*: This type provides a low-level interface to time zone
|
| 18 |
+
information. Typical conversions from `local_time` to `sys_time` will
|
| 19 |
+
use this class implicitly, not explicitly. — *end note*]
|
| 20 |
+
|
| 21 |
+
Describes the result of converting a `local_time` to a `sys_time` as
|
| 22 |
+
follows:
|
| 23 |
+
|
| 24 |
+
- When a `local_time` to `sys_time` conversion is unique,
|
| 25 |
+
`result == unique`, `first` will be filled out with the correct
|
| 26 |
+
`sys_info`, and `second` will be zero-initialized.
|
| 27 |
+
- If the conversion stems from a nonexistent `local_time` then
|
| 28 |
+
`result == nonexistent`, `first` will be filled out with the
|
| 29 |
+
`sys_info` that ends just prior to the `local_time`, and `second` will
|
| 30 |
+
be filled out with the `sys_info` that begins just after the
|
| 31 |
+
`local_time`.
|
| 32 |
+
- If the conversion stems from an ambiguous `local_time`, then
|
| 33 |
+
`result == ambiguous`, `first` will be filled out with the `sys_info`
|
| 34 |
+
that ends just after the `local_time`, and `second` will be filled out
|
| 35 |
+
with the `sys_info` that starts just before the `local_time`.
|
| 36 |
+
|
| 37 |
+
``` cpp
|
| 38 |
+
template<class charT, class traits>
|
| 39 |
+
basic_ostream<charT, traits>&
|
| 40 |
+
operator<<(basic_ostream<charT, traits>& os, const local_info& r);
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
*Effects:* Streams out the `local_info` object `r` in an unspecified
|
| 44 |
+
format.
|
| 45 |
+
|
| 46 |
+
*Returns:* `os`.
|
| 47 |
+
|