std::chrono::utc_clock::to_sys
來自 cppreference.com
template< class Duration > static std::chrono::sys_time<std::common_type_t<Duration, std::chrono::seconds>> |
(C++20 起) | |
將 utc_time
t 轉換為表示同一時間點的 sys_time
(如果可能)。
如果 t 表示閏秒插入期間的時間點,則返回在插入閏秒之前 sys_time
的最後一個可表示值。在所有其他情況下,utc_clock::from_sys(utc_clock::to_sys(t)) == t。
[編輯] 返回值
一個 sys_time
,表示與 t 相同的時間點,如果 t 表示閏秒插入期間的時間點,則返回在插入閏秒之前的最後一個可表示值。
[編輯] 參閱
[靜態] |
將 sys_time 轉換為 utc_time (public static member function) |
(C++20) |
將一個時鐘的時間點轉換為另一個時鐘的時間點 (function template) |