std::chrono::locate_zone

From cppreference.com
< cpp‎ | chrono
Date and time library
Time point
(C++11)
(C++20)
Duration
(C++11)
Clocks
(C++11)
(C++11)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Time of day
(C++20)(C++20)
(C++20)(C++20)
(C++20)

Calendar
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
Time zone
(C++20)
(C++20)
(C++20) (C++20) (C++20) (C++20)
(C++20)
(C++20)
locate_zone
(C++20)
(C++20)
(C++20)
(C++20)
chrono I/O
(C++20)
C-style date and time
Defined in header <chrono>
const std::chrono::time_zone * locate_zone( std::string_view tz_name ) ;
(since C++20)

Convenience function for locating a time zone in the time zone database. Equivalent to std::chrono::get_tzdb ( ).locate_zone (tz_name)

Exceptions

std::runtime_error

Notes

A call to this function that is the first reference to the time zone database will cause it to be initialized.

See also

locate a time zone with the given name
(public member function of std::chrono::tzdb)
accesses and controls the global time zone database information
(function)