名前空間
変種
操作

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

From cppreference.com
< cpp‎ | chrono‎ | file clock
 
 
 
std::chrono::file_clock
メンバ関数

file_clock::to_sysfile_clock::from_sys
(optional*)

時間点 I/O
 
template< class Duration >

static std::chrono::sys_time</*下記参照*/>

    to_sys( const std::chrono::file_time<Duration>& t );
(1) (C++20以降)
(optional*)
template< class Duration >

static std::chrono::file_time</*下記参照*/>

    from_sys( const std::chrono::sys_time<Duration>& t );
(2) (C++20以降)
(optional*)
1) 指定された file_time t を、同じ時点を表す sys_time に変換します。
2) 指定された sys_time t を、同じ時点を表す file_time に変換します。

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

これらの関数テンプレートはオプションです。実装によっては、代わりに to_utc()from_utc() を提供することを選択できます。

目次

[編集] 戻り値

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

[編集] 注記

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

[編集]

[編集] 関連項目

[static] (optional)
file_timeutc_time を変換します
(public static member function) [編集]
あるクロックの時間点を別のクロックの時間点に変換する
(関数テンプレート) [編集]
English 日本語 中文(简体) 中文(繁體)