43 std::time_t t = std::chrono::system_clock::to_time_t(
m_tp);
44 std::string str = std::ctime(&t);
45 return str.substr(0, str.length() - 1);
54 time_t now = time(NULL);
57 tstruct = *localtime(&now);
58 strftime(buf,
sizeof(buf),
"%Y%m%d_%H%M%S", &tstruct);
64 return std::chrono::system_clock::to_time_t(
m_tp);
68 std::chrono::system_clock::time_point
m_tp;
std::chrono::system_clock::time_point m_tp
Time Dependent Person DataType.
Provides wall-clock time stamp using the time call.
TimeStamp()
Constructor marks the time for the time stamp.
std::string toString() const
Returns string with the time stamp after eliminating newline.
std::string toTag() const
Returns string with the time stamp after eliminating newline.
std::time_t toTimeT() const
Returns time stamp as a time_t.
std::ostream & operator<<(std::ostream &os, const GeoCoordinate &g)