std::chrono::system_clock::from_time_t
来自cppreference.com
< cpp | chrono | system clock
![]() |
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
static std::chrono::time_point from_time_t( std::time_t t ); |
(C++11 起) | |
转换
t
到时间点的类型,使用的两种类型的精度较粗.原文:
Converts
t
to a time point type, using the coarser precision of the two types.如果
time_point
具有较低的精度,它是实现定义的值是否是圆形或截断.....原文:
If
time_point
has lower precision, it is implementation defined whether the value is rounded or truncated.目录 |
[编辑] 参数
t | - | std::time_t要转换的值
|
[编辑] 返回值
值类型std::chrono::time_point代表
t
.原文:
A value of type std::chrono::time_point representing
t
.[编辑] 例外
[编辑] 另请参阅
[静态的]</div></div>
|
系统时钟时间点转换std::time_t 原文: converts a system clock time point to std::time_t (公共静态成员函数) |