7 #include "fwTools/fromIsoExtendedString.hpp" 18 std::string dateAndTimeStr = boost::posix_time::to_iso_extended_string(dateAndTime);
19 return dateAndTimeStr.substr(0, 10);
26 std::string tmp(time_string);
27 std::string::size_type i = 0;
28 while ((i = tmp.find(
'T', i)) != (std::string::size_type)(-1))
30 tmp.replace(i++, 1,
" ");
32 ::boost::posix_time::ptime t = boost::posix_time::time_from_string(tmp);
41 ss << date_string <<
" 00:00:00";
43 ::boost::posix_time::ptime t = boost::posix_time::time_from_string(ss.str());
51 return boost::posix_time::to_iso_extended_string(ptime);