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 起)
( 可选* ) |
file_time
t
转换为表示同一时间点的
sys_time
。
sys_time
t
转换为表示同一时间点的
file_time
。
返回类型的时长以未指定的方式从
Duration
计算得出。
这些函数模板是可选的:实现可以选择改为提供
to_utc()
和
from_utc()
。
目录 |
返回值
sys_time
,表示与参数相同的时间点。
file_time
,表示与参数相同的时间点。
注释
用户代码通常应使用 std:: chrono :: clock_cast ,它提供了在时钟之间转换时间点的通用接口,而非直接调用这些函数。
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
[static]
(optional)
|
在
file_time
与
utc_time
之间进行转换
(公开静态成员函数) |
|
(C++20)
|
将一个时钟的时间点转换为另一个时钟的时间点
(函数模板) |