std::chrono::tai_clock:: to_utc
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
|
tai_clock::to_utc
|
||||
| Time point I/O | ||||
|
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は、2つのクロックのエポック間の秒数である:1958-01-01 00:00:00 TAI と 1970-01-01 00:00:00 UTC)。
関連項目
|
[static]
|
utc_time
を
tai_time
に変換する
(public static member function) |
|
(C++20)
|
あるクロックの時間点を別のクロックに変換する
(function template) |