Files
2025-10-25 03:02:53 +03:00

2.2 KiB

[time.zone.link]

30 Time library [time]

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; };}

1

#

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;

1

#

Returns: The alternative name for the time zone.

🔗

string_view target() const noexcept;

2

#

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;

1

#

Returns: x.name() == y.name().

🔗

strong_ordering operator<=>(const time_zone_link& x, const time_zone_link& y) noexcept;

2

#

Returns: x.name() <=> y.name().