Searched refs:localTime (Results 1 – 4 of 4) sorted by relevance
135 struct tm localTime = {0}; in SetTimeToZipFileInfo() local136 if (localtime_r(&nowTime, &localTime) == nullptr) { in SetTimeToZipFileInfo()141 zipInfo.tmz_date.tm_year = static_cast<uInt>(localTime.tm_year + kBaseYear); in SetTimeToZipFileInfo()142 zipInfo.tmz_date.tm_mon = static_cast<uInt>(localTime.tm_mon); in SetTimeToZipFileInfo()143 zipInfo.tmz_date.tm_mday = static_cast<uInt>(localTime.tm_mday); in SetTimeToZipFileInfo()144 zipInfo.tmz_date.tm_hour = static_cast<uInt>(localTime.tm_hour); in SetTimeToZipFileInfo()145 zipInfo.tmz_date.tm_min = static_cast<uInt>(localTime.tm_min); in SetTimeToZipFileInfo()146 zipInfo.tmz_date.tm_sec = static_cast<uInt>(localTime.tm_sec); in SetTimeToZipFileInfo()
76 tm localTime = { 0 }; in StartTimerThread() local77 tm *result = localtime_r(¤t, &localTime); in StartTimerThread()82 int currentHour = localTime.tm_hour; in StartTimerThread()83 int currentMin = localTime.tm_min; in StartTimerThread()
88 struct tm *localTime = localtime(&t); in SetTimezoneToKernel() local90 tz.tz_minuteswest = localTime->tm_gmtoff / HOUR_TO_MIN; in SetTimezoneToKernel()
419 struct tm *localTime = std::localtime(¤tTime); in CompressLogs() local420 if (localTime != nullptr) { in CompressLogs()421 std::strftime(realTime, sizeof(realTime), "%Y%m%d%H%M%S", localTime); in CompressLogs()