std::chrono::file_clock:: to_sys, std::chrono::file_clock:: from_sys
|
template
<
class
Duration
>
static
std::
chrono
::
sys_time
<
/*see below*/
>
|
(1) |
(C++20以降)
( オプション* ) |
|
template
<
class
Duration
>
static
std::
chrono
::
file_time
<
/*see below*/
>
|
(2) |
(C++20以降)
( オプション* ) |
sys_time
に
file_time
t
を変換します。
file_time
に
sys_time
t
を変換します。
戻り値の型の期間は、未規定の方法で
Duration
から計算されます。
これらの関数テンプレートはオプションです:実装は代わりに
to_utc()
および
from_utc()
を提供することを選択してもよい。
目次 |
戻り値
sys_time
。
file_time
を返す。
注記
ユーザーコードは通常、これらの関数を直接呼び出すのではなく、クロック間で時間点を変換する汎用インターフェースを提供する std:: chrono :: clock_cast を使用すべきです。
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
|
[static]
(optional)
|
file_time
と
utc_time
の間で変換する
(public static member function) |
|
(C++20)
|
あるクロックの時間点を別のクロックに変換する
(function template) |