boost 获取日期时间

using namespace boost::posix_time;
using namespace boost::gregorian;
time_duration hms(second_clock::local_time().time_of_day());
int hour = hms.hours();
int minutes= hms.minutes();
发布了136 篇原创文章 · 获赞 22 · 访问量 10万+

猜你喜欢

转载自blog.csdn.net/u010261063/article/details/82113097