2013年1月24日

[Boost]boost的时间和日期处理-(2)时间的操作

摘要: 本篇紧接着boost上篇叙述Boost::DateTime的时间处理。在C++中,常见的时间有time_t, FILETIME和tm,而boost中用ptime。构造ptime1.ptime的构造函数有四种:1: using namespace boost::posix_time;2: using namespace boost::gregorian;3: ptime pt(date(2013,Jan,24),time_duration(1,2,3)); //由date和time_duration构造4: ptime pt1(date(2013,Jan,24),hour... 阅读全文

posted @ 2013-01-24 17:28 _小球儿_ 阅读(17832) 评论(0) 推荐(0) 编辑

导航