Boost C++ 库

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb SutterAndrei Alexandrescu, C++ 编码标准

PrevUpHomeNext

time_traits< boost::posix_time::ptime >

(已弃用) 针对 posix_time 专门化的时间特征。

template<>
struct time_traits< boost::posix_time::ptime >
类型

名称

描述

duration_type

持续时间类型。

time_type

时间类型。

成员函数

名称

描述

add [static]

将持续时间添加到时间。

less_than [static]

测试一个时间是否小于另一个时间。

now [static]

获取当前时间。

subtract [static]

从另一个时间减去一个时间。

to_posix_duration [static]

转换为 POSIX 持续时间类型。

要求

Header: boost/asio/time_traits.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext