std::chrono::utc_clock:: to_sys
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
|
utc_clock::to_sys
|
||||
| Time point I/O | ||||
| Leap second insertion information | ||||
|
template
<
class
Duration
>
static
std::
chrono
::
sys_time
<
std::
common_type_t
<
Duration,
std::
chrono
::
seconds
>>
|
(C++20 起) | |
将
utc_time
t
转换为表示同一时间点(若可能)的
sys_time
。
如果
t
表示闰秒插入期间的时间点,则返回闰秒插入前
sys_time
最后一个可表示值。在所有其他情况下,
utc_clock
::
from_sys
(
utc_clock
::
to_sys
(
t
)
)
==
t
。
返回值
一个
sys_time
,表示与
t
相同的时间点,或者当
t
表示闰秒插入期间的时间点时,表示闰秒插入前的最后一个可表示值。
参见
|
[static]
|
将
sys_time
转换为
utc_time
(公开静态成员函数) |
|
(C++20)
|
将一种时钟的时间点转换为另一种时钟的时间点
(函数模板) |