29
Time library
[time]
29.11
Time zones
[time.zone]
29.11.6
Class template
zoned_
traits
[time.zone.zonedtraits]
namespace
std
::
chrono
{
template
<
class
T
>
struct
zoned_traits
{
}
;
}
1
#
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
(
)
;
2
#
Returns
:
std
::
chrono
::
locate_
zone
(
"UTC"
)
.
🔗
static
const
time_zone
*
locate_zone
(
string_view name
)
;
3
#
Returns
:
std
::
chrono
::
locate_
zone
(
name
)
.