std::chrono::tai_clock:: from_utc
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
|
tai_clock::from_utc
|
||||
| Time point I/O | ||||
|
template
<
class
Duration
>
static
std::
chrono
::
tai_time
<
std::
common_type_t
<
Duration,
std::
chrono
::
seconds
>>
|
(C++20以降) | |
utc_time
t
を同じ時点を表す
tai_time
に変換します。
戻り値
std::chrono::tai_time が表す時刻と同じ時点を表す t であり、戻り値の型の値を t. time_since_epoch ( ) から構築し、 378691210s を加算するかのように計算される(378691210は2つのクロックのエポック間の秒数:1958-01-01 00:00:00 TAIと1970-01-01 00:00:00 UTC)。
関連項目
|
[static]
|
tai_time
を
utc_time
に変換する
(public static member function) |
|
(C++20)
|
あるクロックの時間点を別のクロックに変換する
(function template) |