tmp/tmp_jzorglv/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Class template `zoned_traits` <a id="time.zone.zonedtraits">[[time.zone.zonedtraits]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
namespace std::chrono {
|
| 5 |
+
template<class T> struct zoned_traits {};
|
| 6 |
+
}
|
| 7 |
+
```
|
| 8 |
+
|
| 9 |
+
`zoned_traits` provides a means for customizing the behavior of
|
| 10 |
+
`zoned_time<Duration, TimeZonePtr>` for the `zoned_time` default
|
| 11 |
+
constructor, and constructors taking `string_view`. A specialization for
|
| 12 |
+
`const time_zone*` is provided by the implementation:
|
| 13 |
+
|
| 14 |
+
``` cpp
|
| 15 |
+
namespace std::chrono {
|
| 16 |
+
template<> struct zoned_traits<const time_zone*> {
|
| 17 |
+
static const time_zone* default_zone();
|
| 18 |
+
static const time_zone* locate_zone(string_view name);
|
| 19 |
+
};
|
| 20 |
+
}
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
``` cpp
|
| 24 |
+
static const time_zone* default_zone();
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
*Returns:* `std::chrono::locate_zone("UTC")`.
|
| 28 |
+
|
| 29 |
+
``` cpp
|
| 30 |
+
static const time_zone* locate_zone(string_view name);
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
*Returns:* `std::chrono::locate_zone(name)`.
|
| 34 |
+
|