Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::chrono::zoned_time<Duration,TimeZonePtr>::get_time_zone

Retrieves the stored time zone pointer.

NotebookLM
TimeZonePtr get_time_zone() const;
(since C++20)

Retrieves the stored time zone pointer.

Return value

A copy of the stored time zone pointer.

Notes

There's no way to access the time zone pointer when TimeZonePtr is a move-only type.

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.