std::chrono::current_zone (3) - Linux Manuals

std::chrono::current_zone: std::chrono::current_zone

NAME

std::chrono::current_zone - std::chrono::current_zone

Synopsis


Defined in header <chrono>
const std::chrono::time_zone* current_zone(); (since C++20)


Convenience function for obtaining local time zone from the time zone database. Equivalent to std::chrono::get_tzdb().current_zone().

Exceptions


std::runtime_error if this is the first reference to the time zone database and the time zone database cannot be initialized.

Notes


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

See also


               return the local time zone
current_zone (public member function of std::chrono::tzdb)


get_tzdb
get_tzdb_list accesses and controls the global time zone database information
reload_tzdb (function)
remote_version


(C++20)