| 27 | #include "common.hpp" |
| 28 | |
| 29 | std::string DateTime::timeStr(void) |
| 30 | { |
| 31 | time_t unixTime; |
| 32 | struct tm timeStruct; |
| 33 | time(&unixTime); |
| 34 | localtime_r(&unixTime, &timeStruct); |
| 35 | return StringUtils::format("%02i:%02i:%02i", timeStruct.tm_hour, timeStruct.tm_min, timeStruct.tm_sec); |
| 36 | } |
| 37 | |
| 38 | std::string DateTime::dateTimeStr(void) |
| 39 | { |
nothing calls this directly
no outgoing calls
no test coverage detected