LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Timestamp.cc
Go to the documentation of this file.
1
#include "
canvas/Persistency/Provenance/Timestamp.h
"
2
#include "boost/date_time/posix_time/posix_time.hpp"
3
4
#include <ctime>
5
6
namespace
art
{
7
std::string
8
to_iso_string_assuming_unix_epoch
(
Timestamp
const
& ts)
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
}
art::Timestamp::value
constexpr TimeValue_t value() const
Definition:
Timestamp.h:23
art::Timestamp
Definition:
Timestamp.h:10
art::to_iso_string_assuming_unix_epoch
std::string to_iso_string_assuming_unix_epoch(Timestamp const &ts)
Definition:
Timestamp.cc:8
art
Definition:
MVAAlg.h:12
Timestamp.h
canvas
Persistency
Provenance
Timestamp.cc
Generated on Thu May 2 2024 20:59:31 for LArSoft by
1.8.11