我有两个 UTC 时间戳(自 1.1.1970 以来的时间)
我想将它们之间的区别显示为字符串 %H:%M:%S 例如。13:34:12
目前我已经走到了这一步
time_facet *facet = new time_facet("%H:%M:%S");
cout.imbue(locale(cout.getloc(), facet));
ptime now = boost::date_time::not_a_date_time;
now = boost::posix_time::microsec_clock::universal_time();
ptime timerEnd = from_time_t(timestamp);
boost::posix_time::time_period tp(now, timerEnd);
//what now?