MCPcopy Create free account
hub / github.com/avast/retdec / getCurrentTimestamp

Function getCurrentTimestamp

src/utils/time.cpp:57–60  ·  view source on GitHub ↗

* @brief Returns the current timestamp. */

Source from the content-addressed store, hash-verified

55* @brief Returns the current timestamp.
56*/
57std::tm *getCurrentTimestamp() {
58 auto now = std::time(nullptr);
59 return std::localtime(&now);
60}
61
62/**
63* @brief Returns the current date in the form @c YYYY-MM-DD.

Callers 4

getCurrentDateFunction · 0.85
getCurrentTimeFunction · 0.85
getCurrentYearFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected