LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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 {
7  std::string
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 }
constexpr TimeValue_t value() const
Definition: Timestamp.h:23
std::string to_iso_string_assuming_unix_epoch(Timestamp const &ts)
Definition: Timestamp.cc:8
Definition: MVAAlg.h:12