Home
last modified time | relevance | path

Searched refs:newTime (Results 1 – 2 of 2) sorted by relevance

/base/web/webview/ohos_adapter/ohos_resource_adapter/src/
Dohos_resource_adapter_impl.cpp190 struct tm newTime; in GetRawFileLastModTime() local
191 newTime.tm_year = ((modifiedDate >> TM_YEAR_BITS) & 0x7f) + START_YEAR; in GetRawFileLastModTime()
192 newTime.tm_mon = (modifiedDate >> TM_MON_BITS) & 0xf; in GetRawFileLastModTime()
193 newTime.tm_mday = modifiedDate & 0x1f; in GetRawFileLastModTime()
194 newTime.tm_hour = (modifiedTime >> TM_HOUR_BITS) & 0x1f; in GetRawFileLastModTime()
195 newTime.tm_min = (modifiedTime >> TM_MIN_BITS) & 0x2f; in GetRawFileLastModTime()
196 newTime.tm_sec = (modifiedTime << 1) & 0x1f; in GetRawFileLastModTime()
197 newTime.tm_isdst = 0; in GetRawFileLastModTime()
198 time = mktime(&newTime); in GetRawFileLastModTime()
/base/update/updater/services/package/pkg_package/
Dpkg_zipfile.cpp672 struct tm newTime; in CombineTimeAndDate() local
673newTime.tm_year = ((modifiedDate >> TM_YEAR_BITS) & 0x7f) + START_YEAR; // 年,tm_year为int临时变量减去1900。 in CombineTimeAndDate()
674 newTime.tm_mon = (modifiedDate >> TM_MON_BITS) & 0xf; // 月,tm_mon为int临时变量减去1。 in CombineTimeAndDate()
675 newTime.tm_mday = modifiedDate & 0x1f; // 日。 in CombineTimeAndDate()
676 newTime.tm_hour = (modifiedTime >> TM_HOUR_BITS) & 0x1f; // 时。 in CombineTimeAndDate()
677 newTime.tm_min = (modifiedTime >> TM_MIN_BITS) & 0x2f; // 分。 in CombineTimeAndDate()
678 newTime.tm_sec = (modifiedTime << 1) & 0x1f; // 秒。 in CombineTimeAndDate()
679 newTime.tm_isdst = 0; // 非夏令时。 in CombineTimeAndDate()
680 time = mktime(&newTime); // 将tm结构体转换成time_t格式。 in CombineTimeAndDate()