[time.zone.link] # 30 Time library [[time]](./#time) ## 30.11 Time zones [[time.zone]](time.zone#link) ### 30.11.9 Class time_zone_link [time.zone.link] #### [30.11.9.1](#overview) Overview [[time.zone.link.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](#overview-1) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10384) A time_zone_link specifies an alternative name for a time_zone[.](#overview-1.sentence-1) time_zone_links are constructed when the time zone database is initialized[.](#overview-1.sentence-2) #### [30.11.9.2](#members) Member functions [[time.zone.link.members]](time.zone.link.members) [🔗](#lib:name,time_zone_link) `string_view name() const noexcept; ` [1](#members-1) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10396) *Returns*: The alternative name for the time zone[.](#members-1.sentence-1) [🔗](#lib:target,time_zone_link) `string_view target() const noexcept; ` [2](#members-2) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10407) *Returns*: The name of the time_zone for which this time_zone_link provides an alternative name[.](#members-2.sentence-1) #### [30.11.9.3](#nonmembers) Non-member functions [[time.zone.link.nonmembers]](time.zone.link.nonmembers) [🔗](#lib:operator==,time_zone_link) `bool operator==(const time_zone_link& x, const time_zone_link& y) noexcept; ` [1](#nonmembers-1) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10421) *Returns*: x.name() == y.name()[.](#nonmembers-1.sentence-1) [🔗](#lib:operator%3c=%3e,time_zone_link) `strong_ordering operator<=>(const time_zone_link& x, const time_zone_link& y) noexcept; ` [2](#nonmembers-2) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10432) *Returns*: x.name() <=> y.name()[.](#nonmembers-2.sentence-1)