#include <VP1TimeUtilities.h>
Definition at line 25 of file VP1TimeUtilities.h.
◆ VP1TimeUtilities()
| VP1TimeUtilities::VP1TimeUtilities |
( |
| ) |
|
|
private |
◆ ~VP1TimeUtilities()
| VP1TimeUtilities::~VP1TimeUtilities |
( |
| ) |
|
|
private |
◆ getHumanReadableTimestamp()
| std::string VP1TimeUtilities::getHumanReadableTimestamp |
( |
time_t | t_timestamp | ) |
|
|
static |
Definition at line 24 of file VP1TimeUtilities.cxx.
25{
26 struct tm ltm;
27 localtime_r(&t_timestamp, <m);
28
29 std::string humanTimestamp;
30
31 std::ostringstream ostri;
32 ostri << 1900 + ltm.tm_year
33 << "-" << 1 + ltm.tm_mon
34 << "-" << ltm.tm_mday
35 << "T" << ltm.tm_hour << "-" << ltm.tm_min << "-" << ltm.tm_sec;
36
37 humanTimestamp = ostri.str();
38
39 return humanTimestamp;
40}
The documentation for this class was generated from the following files: