std::chrono::utc_clock::to_sys
提供: cppreference.com
<tbody>
</tbody>
template <class Duration> static std::chrono::sys_time<std::common_type_t<Duration, std::chrono::seconds>> to_sys(const std::chrono::utc_time<Duration>& t); |
(C++20以上) | |
utc_time t を、同じ時点を表す sys_time に変換します (可能であれば)。
t が閏秒挿入中の時点を表す場合、その閏秒挿入前の最後の表現可能な sys_time が返されます。 他のすべての場合において、 utc_clock::from_sys(utc_clock::to_sys(t)) == t が成り立ちます。
戻り値
t と同じ時点を表す sys_time、または、 t が閏秒挿入中の時点を表す場合、その閏秒挿入前の最後の表現可能な値。
関連項目
[静的] |
sys_time を utc_time に変換します (パブリック静的メンバ関数) |
(C++20) |
ある時計の時点を別の時計に変換します (関数テンプレート) |