首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::chrono::system_clock::to_time_t

static std::time_t to_time_t( const time_point& t );

?

(since C++11)

皈依t转到std::time_t类型。

如果std::time_t精度较低,是实现定义的值是舍入还是截断。

参数

t

-

system clock time point to convert

返回值

std::time_t值表示t...

例外

noexcept规格:

noexcept

另见

from_time_t static

converts std::time_t to a system clock time point (public static member function)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com