MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / reset_date

Method reset_date

modules/core/core/src/core/log/log_manager.cpp:219–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void LogManager::DateTime::reset_date() SKR_NOEXCEPT
220{
221 auto Manager = LogManager::Get();
222 time_t rawtime = Manager->tscns_.rdns() / 1000000000;
223 struct tm* timeinfo = ::localtime(&rawtime);
224 timeinfo->tm_sec = timeinfo->tm_min = timeinfo->tm_hour = 0;
225 midnightNs = ::mktime(timeinfo) * 1000000000;
226 year = 1900 + timeinfo->tm_year;
227 month = 1 + timeinfo->tm_mon;
228 day = timeinfo->tm_mday;
229}
230
231} } // namespace skr::log

Callers 2

InitializeMethod · 0.80
log_pattern.cppFile · 0.80

Calls 2

rdnsMethod · 0.80
GetFunction · 0.50

Tested by

no test coverage detected