Home
last modified time | relevance | path

Searched refs:tz (Results 1 – 7 of 7) sorted by relevance

/base/time/time_service/services/time/src/
Dtime_zone_info.cpp42 for (const auto &tz : timezoneList) { in TimeZoneInfo() local
43 timezoneInfoMap_[tz.ID] = tz; in TimeZoneInfo()
99 struct timezone tz; in SetTimezoneToKernel() local
100 tz.tz_minuteswest = offset * HOUR_TO_MILLI; in SetTimezoneToKernel()
101 tz.tz_dsttime = 0; in SetTimezoneToKernel()
103 int result = settimeofday(NULL, &tz); in SetTimezoneToKernel()
/base/hiviewdfx/hiview/adapter/utility/platform/linux/
Dtime_util.cpp83 char tz[tzBufSize]; in GetTimeZone() local
84 auto ret = strftime(tz, tzBufSize, "%z", &tmLocal); in GetTimeZone()
86 return std::string(tz); in GetTimeZone()
/base/hiviewdfx/hiview/plugins/freeze_detector/
Dresolver.cpp163 struct timezone tz; in GetTimeZone() local
164 if (gettimeofday(&tv, &tz) != 0) { in GetTimeZone()
169 int hour = (-tz.tz_minuteswest) / MINUTES_IN_HOUR; in GetTimeZone()
178 int minute = (-tz.tz_minuteswest) % MINUTES_IN_HOUR; in GetTimeZone()
/base/hiviewdfx/hiview/adapter/utility/platform/ohos/
Dtime_util.cpp84 char tz[tzBufSize]; in GetTimeZone() local
85 auto ret = strftime(tz, tzBufSize, "%z", &tmLocal); in GetTimeZone()
87 return std::string(tz); in GetTimeZone()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/
Dhisysevent_record_c.h33 char tz[MAX_LENGTH_OF_TIME_ZONE]; member
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/
Dhisysevent_query_callback_c.cpp42 … return OHOS::HiviewDFX::StringUtil::CopyCString(recordStruct.tz, recordObj.GetTimeZone(), maxLen); in ConvertTimeZone()
/base/hiviewdfx/hisysevent/test/moduletest/common/
Dhisysevent_manager_c_test.cpp78 record.tz, record.time, record.pid, record.tid, record.uid, in RecordBaseParamPrint()
90 ASSERT_TRUE(strlen(record.tz) > 0); in OnQueryTest()