Timestamp.cc
Go to the documentation of this file.
2 #include "boost/date_time/posix_time/posix_time.hpp"
3 
4 #include <ctime>
5 
6 namespace art {
9  {
10  auto const t = static_cast<time_t>(ts.value());
11  auto const p = boost::posix_time::from_time_t(t);
12  return boost::posix_time::to_iso_string(p);
13  }
14 }
std::string string
Definition: nybbler.cc:12
constexpr TimeValue_t value() const
Definition: Timestamp.h:23
std::string to_iso_string_assuming_unix_epoch(Timestamp const &ts)
Definition: Timestamp.cc:8
p
Definition: test.py:223