Home
last modified time | relevance | path

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

/external/u-boot/drivers/rtc/
Ddate.c20 #define days_in_month(a) (month_days[(a) - 1]) macro
88 days_in_month(FEBRUARY) = 29; in rtc_to_tm()
89 for (i = 1; day >= days_in_month(i); i++) in rtc_to_tm()
90 day -= days_in_month(i); in rtc_to_tm()
91 days_in_month(FEBRUARY) = 28; in rtc_to_tm()
/external/python/cpython2/Modules/
Ddatetimemodule.c190 days_in_month(int year, int month) in days_in_month() function
317 preceding -= days_in_month(*year, *month); in ord_to_ymd()
321 assert(n < days_in_month(*year, *month)); in ord_to_ymd()
392 if (day < 1 || day > days_in_month(year, month)) { in check_date_args()
512 dim = days_in_month(*y, *m); in normalize_y_m_d()
521 *d = days_in_month(*y, *m); in normalize_y_m_d()
/external/python/cpython3/Modules/
D_datetimemodule.c218 days_in_month(int year, int month) in days_in_month() function
339 preceding -= days_in_month(*year, *month); in ord_to_ymd()
343 assert(n < days_in_month(*year, *month)); in ord_to_ymd()
413 if (day < 1 || day > days_in_month(year, month)) { in check_date_args()
528 dim = days_in_month(*y, *m); in normalize_y_m_d()
537 *d = days_in_month(*y, *m); in normalize_y_m_d()