【发布时间】:2011-08-02 05:18:31
【问题描述】:
我无法将posix_time::ptime 转换为time_t 或posix_time::milliseconds 表示的时间戳,或任何其他可以轻松打印的适当类型(来自Epoch)。
我实际上只需要以毫秒为单位打印posix_time::ptime 表示的时间戳,所以如果有一种简单的方法可以以这种格式打印,我实际上不需要转换。
【问题讨论】:
标签: boost time posix epoch milliseconds