std::chrono::current_zone 定义于头文件<chrono> conststd::chrono::time_zone*current_zone(); (C++20 起) 从时区数据库获得本地时区的便利函数。等价于std::chrono::get_tzdb().current_zone()。 异常 若这次调用是对时区数据库的首次引用且无法初始化时区数据库,则抛出std::runtime_error。
std::chrono::get_tzdb_list, std::chrono::get_tzdb, std::chrono::remote_version, std::chrono::reload_tzdb std::chrono::time_zone std::chrono::locate_zone std::chrono::current_zone std::chrono::zoned_time std::chrono::time_zone_link std::chrono::leap_second std::chrono::time_of_...
std::chrono::tzdb Member functions tzdb::locate_zone tzdb::current_zone conststd::chrono::time_zone*current_zone()const; (since C++20) Obtains a pointer to astd::chrono::time_zonein this database that represents the local time zone of the computer. ...