std::chrono::time_zone::get_info
来自cppreference.com
| template<class Duration > std::chrono::sys_info get_info(const std::chrono::sys_time<Duration>& tp) const; |
(C++20 起) | |
| template< class Duration > std::chrono::local_info get_info(const std::chrono::local_time<Duration>& tp) const; |
(C++20 起) | |
获得关于此时区在时间点 tp 的信息。
返回值
1) 含有此时区在时间点
tp 有效的时区信息的 std::chrono::sys_info 结构体 i 。 tp 将在范围 [i.begin, i.end) 中。2) 含有关于本地时间
tp 在此时区中的信息的 std::chrono::local_info 结构体。