...one of the most highly regarded and expertly designed C++ library projects in the world.
— Herb Sutter 和 Andrei Alexandrescu, C++ 编码标准
(已弃用) 针对 posix_time 专门化的时间特征。
template<> struct time_traits< boost::posix_time::ptime >
名称 |
描述 |
---|---|
持续时间类型。 |
|
时间类型。 |
名称 |
描述 |
---|---|
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