std::chrono::time_zone::get_info

来自cppreference.com
< cpp‎ | chrono‎ | time zone
 
 
 
 
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 结构体 itp 将在范围 [i.begini.end) 中。
2) 含有关于本地时间 tp 在此时区中的信息的 std::chrono::local_info 结构体。