| 217 | } |
| 218 | |
| 219 | void 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 |
no test coverage detected