Home
last modified time | relevance | path

Searched refs:timeZone (Results 1 - 6 of 6) sorted by relevance

/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dtime_util.cpp92 struct timezone timeZone; in GetTimeOfNow() local
93 gettimeofday(&currentTime, &timeZone); in GetTimeOfNow()
96 int32_t minutesWest = timeZone.tz_minuteswest; in GetTimeOfNow()
105 timeOfNow.hoursWest_ = timeZone.tz_minuteswest / TOTAL_MINUTE_OF_HOUR; in GetTimeOfNow()
147 struct timezone timeZone; in GetTimeOfZone() local
148 gettimeofday(&currentTime, &timeZone); in GetTimeOfZone()
151 int32_t minutesWest = timeZone.tz_minuteswest; in GetTimeOfZone()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_clock/
H A Dtext_clock_layout_property.cpp26 struct timezone timeZone {}; in GetSystemTimeZone() struct
27 gettimeofday(&currentTime, &timeZone); in GetSystemTimeZone()
28 int32_t hoursWest = timeZone.tz_minuteswest / TOTAL_MINUTE_OF_HOUR; in GetSystemTimeZone()
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/
H A Ddate_time_format_module.cpp213 std::string result, timeZone; in Format() local
215 formatter->dateFormat_->Format(dateTime, timeZone, result, status); in Format()
279 std::string result, timeZone, check; in FormatDate() local
282 dateFormat_->Format(time, timeZone, result, status); in FormatDate()
294 dateFormat_->Format(time, timeZone, check, status); in FormatDate()
341 std::string result, timeZone; in FormatTime() local
344 dateFormat_->Format(time, timeZone, result, status); in FormatTime()
/foundation/arkui/ace_engine_lite/frameworks/src/core/context/
H A Djs_profiler.cpp400 struct timezone timeZone; in GetCurrentClockTick()
401 return (gettimeofday(&timeVal, &timeZone) == 0) ? ((timeVal.tv_usec / unit) + (timeVal.tv_sec * unit)) : 0; in GetCurrentClockTick()
/foundation/arkui/ace_engine/frameworks/base/i18n/
H A Dlocalization.cpp261 TimeZone* timeZone = TimeZone::createTimeZone("GMT+0:00"); in FormatDuration() local
262 simpleDateFormat->setTimeZone(*timeZone); in FormatDuration()
266 delete(timeZone); in FormatDuration()
283 TimeZone* timeZone = TimeZone::createTimeZone("GMT+0:00"); in FormatDuration() local
284 simpleDateFormat->setTimeZone(*timeZone); in FormatDuration()
293 delete(timeZone); in FormatDuration()
/foundation/arkui/ace_engine/test/unittest/base/
H A Dbase_utils_test.cpp289 struct timezone timeZone; in HWTEST_F() local
290 gettimeofday(&currentTime, &timeZone); in HWTEST_F()
291 auto getHoursWest = timeZone.tz_minuteswest / 60; in HWTEST_F()

Completed in 7 milliseconds