Home
last modified time | relevance | path

Searched refs:localTime (Results 1 – 4 of 4) sorted by relevance

/base/hiviewdfx/hidumper/frameworks/native/src/util/zip/
Dzip_writer.cpp135 struct tm localTime = {0}; in SetTimeToZipFileInfo() local
136 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()
/base/theme/wallpaper_mgr/utils/dfx/hisysevent_adapter/
Dstatistic_reporter.cpp76 tm localTime = { 0 }; in StartTimerThread() local
77 tm *result = localtime_r(&current, &localTime); in StartTimerThread()
82 int currentHour = localTime.tm_hour; in StartTimerThread()
83 int currentMin = localTime.tm_min; in StartTimerThread()
/base/time/time_service/services/time/src/
Dtime_zone_info.cpp88 struct tm *localTime = localtime(&t); in SetTimezoneToKernel() local
90 tz.tz_minuteswest = localTime->tm_gmtoff / HOUR_TO_MIN; in SetTimezoneToKernel()
/base/update/updater/utils/
Dutils.cpp419 struct tm *localTime = std::localtime(&currentTime); in CompressLogs() local
420 if (localTime != nullptr) { in CompressLogs()
421 std::strftime(realTime, sizeof(realTime), "%Y%m%d%H%M%S", localTime); in CompressLogs()