2.2 KiB
[time.zone.link]
30 Time library [time]
30.11 Time zones [time.zone]
30.11.9 Class time_zone_link [time.zone.link]
30.11.9.1 Overview [time.zone.link.overview]
namespace std::chrono {class time_zone_link {public: time_zone_link(time_zone_link&&) = default; time_zone_link& operator=(time_zone_link&&) = default; // unspecified additional constructors string_view name() const noexcept; string_view target() const noexcept; };}
A time_zone_link specifies an alternative name for a time_zone.
time_zone_links are constructed when the time zone database is initialized.
30.11.9.2 Member functions [time.zone.link.members]
string_view name() const noexcept;
Returns: The alternative name for the time zone.
string_view target() const noexcept;
Returns: The name of the time_zone for which this time_zone_link provides an alternative name.
30.11.9.3 Non-member functions [time.zone.link.nonmembers]
bool operator==(const time_zone_link& x, const time_zone_link& y) noexcept;
Returns: x.name() == y.name().
strong_ordering operator<=>(const time_zone_link& x, const time_zone_link& y) noexcept;
Returns: x.name() <=> y.name().