Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
canvas
canvas
Persistency
Provenance
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
}
string
std::string string
Definition:
nybbler.cc:12
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
reco_momentum_tuples.t
t
Definition:
reco_momentum_tuples.py:25
test.p
p
Definition:
test.py:223
art
Definition:
BasicOptionsHandler.h:9
Timestamp.h
Generated by
1.8.11