【发布时间】:2020-10-19 19:07:42
【问题描述】:
我想要以分钟为单位的 UTC 时间,我不想要秒。我在做……
auto timeUTC = boost::posix_time::second_clock::universal_time();
std::cout << to_iso_extended_string(timeUTC) << std::endl;
这会将时间打印为2020-06-29T23:06:30
我希望从ptime 对象中删除秒部分,例如2020-06-29T23:06:00。
我该怎么做...?
提前谢谢...
【问题讨论】: