std::chrono::utc_clock:: from_sys
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
|
utc_clock::from_sys
|
||||
| Time point I/O | ||||
| Leap second insertion information | ||||
|
template
<
class
Duration
>
static
std::
chrono
::
utc_time
<
std::
common_type_t
<
Duration,
std::
chrono
::
seconds
>>
|
(C++20以降) | |
sys_time
t
を同じ時点を表す
utc_time
u
に変換します。
u. time_since_epoch ( ) - t. time_since_epoch ( ) は、 t と1970年1月1日の間に挿入された閏秒の数に等しい。 t が閏秒挿入の正確な日時である場合、その閏秒は挿入済みとしてカウントされる。
戻り値
utc_time
が
t
と同じ時点を表す。
関連項目
|
[static]
|
utc_time
を
sys_time
に変換します
(public static member function) |
|
(C++20)
|
あるクロックの時間点を別のクロックに変換します
(function template) |