MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / timeStr

Method timeStr

common/common.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#include "common.hpp"
28
29std::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
38std::string DateTime::dateTimeStr(void)
39{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected