std::chrono::tai_clock::to_utc
來自 cppreference.com
| template< class Duration > static std::chrono::utc_time<std::common_type_t<Duration, std::chrono::seconds>> |
(C++20 起) | |
將 tai_time t 轉換為表示同一時間點的 utc_time。
[編輯] 返回值
一個 std::chrono::utc_time,表示與 t 相同的時間點,其計算方式如同透過 t.time_since_epoch() 構造一個返回型別的值,然後減去 378691210s(378691210 是兩個時鐘的紀元之間(1958-01-01 00:00:00 TAI 和 1970-01-01 00:00:00 UTC)的秒數)。
[編輯] 參閱
| [靜態] |
將 utc_time 轉換為 tai_time(public static 成員函式) |
| (C++20) |
將一個時鐘的時間點轉換為另一個時鐘的時間點 (函式模板) |