27 Time library [time]

27.11 Time zones [time.zone]

27.11.9 Class time_­zone_­link [time.zone.link]

27.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.

27.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.

27.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().