8 #include "knowrob/TimePoint.h"
14 return std::chrono::time_point_cast<std::chrono::seconds>(tp);
19 std::chrono::system_clock::from_time_t(
static_cast<time_t
>(seconds));
20 return std::chrono::time_point_cast<std::chrono::seconds>(tp);
25 return static_cast<double>(time_t_value);
std::time_t to_time_t(TP tp)
double toSeconds(const TimePoint ×tamp)
void write(const TimePoint &tp, std::ostream &os)
TimePoint fromSeconds(double seconds)
std::chrono::time_point< std::chrono::system_clock, std::chrono::seconds > TimePoint