Home
last modified time | relevance | path

Searched refs:RTC_UNIT_DIFF (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/drivers/hdf_core/framework/support/platform/src/rtc/
H A Drtc_base.c27 oddMonth = (month >= RTC_AUGUST) ? (month - RTC_UNIT_DIFF) : month; in RtcGetMonthDays()
66 days = time->day - RTC_UNIT_DIFF; in RtcGetWeekDay()
81 return ((RTC_BEGIN_WEEKDAY + days - RTC_UNIT_DIFF) % RTC_MAX_WEEKDAY + RTC_UNIT_DIFF); in RtcGetWeekDay()
104 days = time->day - RTC_UNIT_DIFF; in RtcTimeToTimestamp()
147 time->day += RTC_UNIT_DIFF; in TimestampToRtcTime()
/ohos5.0/drivers/hdf_core/framework/include/platform/
H A Drtc_base.h35 #define RTC_UNIT_DIFF 1 macro
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/common/
H A Drtc_test.c261 tester->time.hour = tester->config.hour + RTC_UNIT_DIFF; in RtcReadWriteAlarmTimeTest()
329 tester->time.minute = tester->config.minute + RTC_UNIT_DIFF; in RtcAlarmEnableTest()