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

> C++ Atlas: `cppatlas.com/w/cpp/chrono/zoned_time/get_time_zone` | Source: https://en.cppreference.com/w/cpp/chrono/zoned_time/get_time_zone | Domain: Date and time utilities | Standards: C++20

Retrieves the stored time zone pointer.

## Official Specification Summary (cppreference)

```cpp
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.

---
Attribution: content from https://en.cppreference.com/w/cpp/chrono/zoned_time/get_time_zone (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.