Home
last modified time | relevance | path

Searched refs:days_in_month (Results 1 - 12 of 12) sorted by relevance

/third_party/musl/porting/liteos_a/kernel/src/time/
H A D__secs_to_tm.c18 static const char days_in_month[] = {31,30,31,30,31,31,30,31,30,31,31,29}; in __secs_to_tm() local
60 for (months=0; days_in_month[months] <= remdays; months++) in __secs_to_tm()
61 remdays -= days_in_month[months]; in __secs_to_tm()
H A D__tz.c115 static int days_in_month(int m, int is_leap) in days_in_month() function
140 if (n == 5 && days+28 >= days_in_month(m, is_leap)) n = 4; in rule_to_secs()
/third_party/musl/porting/uniproton/kernel/src/time/
H A D__secs_to_tm.c18 static const char days_in_month[] = {31,30,31,30,31,31,30,31,30,31,31,29}; in __secs_to_tm() local
60 for (months=0; days_in_month[months] <= remdays; months++) in __secs_to_tm()
61 remdays -= days_in_month[months]; in __secs_to_tm()
H A D__tz.c121 static int days_in_month(int m, int is_leap) in days_in_month() function
146 if (n == 5 && days+28 >= days_in_month(m, is_leap)) n = 4; in rule_to_secs()
/third_party/musl/porting/liteos_m/kernel/src/time/
H A D__secs_to_tm.c18 static const char days_in_month[] = {31,30,31,30,31,31,30,31,30,31,31,29}; in __secs_to_tm() local
60 for (months=0; days_in_month[months] <= remdays; months++) in __secs_to_tm()
61 remdays -= days_in_month[months]; in __secs_to_tm()
H A D__tz.c121 static int days_in_month(int m, int is_leap) in days_in_month() function
146 if (n == 5 && days+28 >= days_in_month(m, is_leap)) n = 4; in rule_to_secs()
/third_party/musl/src/time/
H A D__secs_to_tm.c18 static const char days_in_month[] = {31,30,31,30,31,31,30,31,30,31,31,29}; in __secs_to_tm() local
60 for (months=0; days_in_month[months] <= remdays; months++) in __secs_to_tm()
61 remdays -= days_in_month[months]; in __secs_to_tm()
H A D__tz.c485 static int days_in_month(int m, int is_leap) in days_in_month() function
510 if (n == 5 && days+28 >= days_in_month(m, is_leap)) n = 4; in rule_to_secs()
/third_party/musl/porting/linux/user/src/time/
H A D__tz.c411 static int days_in_month(int m, int is_leap) in days_in_month() function
436 if (n == 5 && days+28 >= days_in_month(m, is_leap)) n = 4; in rule_to_secs()
/third_party/python/Lib/zoneinfo/
H A D_zoneinfo.py596 first_day, days_in_month = calendar.monthrange(year, self.m)
611 # month_day will only be > days_in_month if w was 5, and `w` means
614 if month_day > days_in_month:
/third_party/python/Modules/
H A D_zoneinfo.c1180 uint8_t days_in_month = DAYS_IN_MONTH[self->month]; in calendarrule_year_to_timestamp() local
1182 days_in_month += 1; in calendarrule_year_to_timestamp()
1202 // month_day will only be > days_in_month if w was 5, and `w` means "last in calendarrule_year_to_timestamp()
1205 if (month_day > days_in_month) { in calendarrule_year_to_timestamp()
H A D_datetimemodule.c237 days_in_month(int year, int month) in days_in_month() function
358 preceding -= days_in_month(*year, *month); in ord_to_ymd()
362 assert(n < days_in_month(*year, *month)); in ord_to_ymd()
465 if (day < 1 || day > days_in_month(year, month)) { in check_date_args()
560 * 1 <= *d <= days_in_month(*y, *m)
580 dim = days_in_month(*y, *m); in normalize_y_m_d()
589 *d = days_in_month(*y, *m); in normalize_y_m_d()

Completed in 17 milliseconds