Namespaces
Variants

std::chrono::file_clock:: to_sys, std::chrono::file_clock:: from_sys

From cppreference.net
template < class Duration >

static std:: chrono :: sys_time < /*see below*/ >

to_sys ( const std:: chrono :: file_time < Duration > & t ) ;
(1) (C++20以降)
( オプション* )
template < class Duration >

static std:: chrono :: file_time < /*see below*/ >

from_sys ( const std:: chrono :: sys_time < Duration > & t ) ;
(2) (C++20以降)
( オプション* )
1) 同じ時点を表す sys_time file_time t を変換します。
2) 同じ時点を表す file_time sys_time t を変換します。

戻り値の型の期間は、未規定の方法で Duration から計算されます。

これらの関数テンプレートはオプションです:実装は代わりに to_utc() および from_utc() を提供することを選択してもよい。

目次

戻り値

1) 引数と同じ時点を表す sys_time
2) 引数と同じ時点を表す file_time を返す。

注記

ユーザーコードは通常、これらの関数を直接呼び出すのではなく、クロック間で時間点を変換する汎用インターフェースを提供する std:: chrono :: clock_cast を使用すべきです。

関連項目

[static] (optional)
file_time utc_time の間で変換する
(public static member function)
(C++20)
あるクロックの時間点を別のクロックに変換する
(function template)