Home
last modified time | relevance | path

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

/drivers/hdf_core/framework/support/platform/src/rtc/
Drtc_base.c16 uint8_t days; in RtcGetMonthDays() local
24 days = RTC_TWO_MONTH_DAY + isLeapYear; in RtcGetMonthDays()
27 days = (oddMonth & RTC_ODD_MONTH_MASK) ? RTC_GREAT_MONTH_DAY : RTC_SMALL_MONTH_DAY; in RtcGetMonthDays()
29 return days; in RtcGetMonthDays()
55 uint32_t days; in RtcGetWeekDay() local
65 days = time->day - RTC_UNIT_DIFF; in RtcGetWeekDay()
68 days += RtcGetMonthDays(IS_LEAP_YEAR(time->year), month); in RtcGetWeekDay()
73 days += RTC_YEAR_DAYS(year); in RtcGetWeekDay()
76 return ((RTC_BEGIN_WEEKDAY + days - RTC_UNIT_DIFF) % RTC_MAX_WEEKDAY + RTC_UNIT_DIFF); in RtcGetWeekDay()
83 uint32_t days; in RtcTimeToTimestamp() local
[all …]