std::chrono::time_zone::get_info
来自 cppreference.cn
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) 一个 std::chrono::sys_info 结构体
i
,包含此时间点 tp 时此时间区生效的时区信息。 tp 将在范围 [
i.begin,
i.end)
内。2) 一个 std::chrono::local_info 结构体,包含关于此时间区中本地时间 tp 的信息。