15 boost::gregorian::date d = t.date();
18 <<
"-" << std::setw(2) << std::setfill(
'0') << d.month().as_number()
19 <<
"-" << std::setw(2) << std::setfill(
'0') << d.day()
27 s << std::setw(2) << std::setfill(
'0') << dur.hours()
28 <<
":" << std::setw(2) << std::setfill(
'0') << dur.minutes()
29 <<
":" << std::setw(2) << std::setfill(
'0') << dur.seconds()
30 <<
"." << std::setw(boost::posix_time::time_duration::num_fractional_digits())
32 << dur.fractional_seconds();
std::string ptimeToText(boost::posix_time::ptime t)
Converts ptime structure to text.
std::string durationToText(boost::posix_time::time_duration dur)
Converts StatsDuration to text.