Home
last modified time | relevance | path

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

/system/ulib/rtc/
A Dlibrtc.c44 for (size_t month = 1; month < rtc->month; month++) { in seconds_since_epoch() local
45 days_since_local_epoch += days_in_month[month]; in seconds_since_epoch()
47 if (rtc->month > 2 && is_leap_year(rtc->year)) { in seconds_since_epoch()
84 for (rtc->month = 1;; rtc->month++) { in seconds_to_rtc()
85 uint32_t days_per_month = days_in_month[rtc->month]; in seconds_to_rtc()
86 if ((rtc->month == 2) && is_leap_year(rtc->year)) { in seconds_to_rtc()
114 rtc->month > 12 || in rtc_is_invalid()
127 .month = 1, in sanitize_rtc()
/system/utest/rtc-lib/
A Drtc.cpp9 fuchsia_hardware_rtc_Time make_rtc(uint16_t year, uint8_t month, uint8_t day, uint8_t hours, in make_rtc() argument
11 return fuchsia_hardware_rtc_Time{seconds, minutes, hours, day, month, year}; in make_rtc()
23 t0.month = 13; in santitize_rtc_test()
25 t0.month = 1; in santitize_rtc_test()
/system/uapp/clock/
A Dclock.c80 rtc.month, in print_rtc()
94 &rtc.month, in set_rtc()
/system/fidl/fuchsia-hardware-rtc/
A Drtc.fidl14 uint8 month;
/system/dev/rtc/nxp/
A Dpcf8563-rtc.c42 rtc->month = from_bcd(read_buf[5] & 0x1f); in pcf8563_rtc_get()
71 (century << 7) | to_bcd(rtc->month), in pcf8563_rtc_set()
/system/dev/rtc/fallback/
A Drtc-impl.cpp44 rtc_last_.month = 1;
/system/dev/rtc/intel-rtc/
A Dintel-rtc.c162 rtc->month = read_reg(REG_MONTH, reg_is_binary); in read_time()
181 write_reg(REG_MONTH, rtc->month, reg_is_binary); in write_time()

Completed in 11 milliseconds