1.4 KiB
1.4 KiB
[time.zone.zonedtraits]
30 Time library [time]
30.11 Time zones [time.zone]
30.11.6 Class template zoned_traits [time.zone.zonedtraits]
namespace std::chrono {template struct zoned_traits {};}
zoned_traits provides a means for customizing the behavior of zoned_time<Duration, TimeZonePtr> for the zoned_time default constructor, and constructors taking string_view.
A specialization for const time_zone* is provided by the implementation:namespace std::chrono {template<> struct zoned_traits<const time_zone*> {static const time_zone* default_zone(); static const time_zone* locate_zone(string_view name); };}
static const time_zone* default_zone();
Returns: std::chrono::locate_zone("UTC").
static const time_zone* locate_zone(string_view name);
Returns: std::chrono::locate_zone(name).