MCPcopy Create free account
hub / github.com/comaps/comaps / SecondsSinceEpochToTimeT

Function SecondsSinceEpochToTimeT

libs/base/timer.cpp:162–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162time_t SecondsSinceEpochToTimeT(uint64_t secondsSinceEpoch)
163{
164 std::chrono::time_point<std::chrono::system_clock> const tpoint{std::chrono::seconds(secondsSinceEpoch)};
165 return std::chrono::system_clock::to_time_t(tpoint);
166}
167
168uint64_t TimeTToSecondsSinceEpoch(time_t time)
169{

Callers 6

GenerateYYMMDDFunction · 0.85
TimeGMFunction · 0.85
UNIT_TESTFunction · 0.85
CreateNoteMethod · 0.85
GetVersionMethod · 0.85

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.68