名稱空間
變體
操作

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 起)

獲取此time zone在時間點 tp 的資訊。

[編輯] 返回值

1) 一個 std::chrono::sys_info 結構體 i,包含此time zone在時間點 tp 生效的時區資訊。tp 將位於範圍 [i.begini.end)
2) 一個 std::chrono::local_info 結構體,包含此time zone中本地時間 tp 的資訊。