Home
last modified time | relevance | path

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

/PHP-8.2/ext/date/lib/
H A Ddow.c57 m1 = timelib_is_leap(y) ? m_table_leap[m] : m_table_common[m]; in timelib_day_of_week_ex()
85 return (timelib_is_leap(y) ? d_table_leap[m] : d_table_common[m]) + d - 1; in timelib_day_of_year()
90 return timelib_is_leap(y) ? ml_table_leap[m] : ml_table_common[m]; in timelib_days_in_month()
97 y_leap = timelib_is_leap(y); in timelib_isoweek_from_date()
98 prev_y_leap = timelib_is_leap(y-1); in timelib_isoweek_from_date()
168 is_leap_year = timelib_is_leap(*y); in timelib_date_from_isodate()
173 daynr += (is_leap_year = timelib_is_leap(*y)) ? 366 : 365; in timelib_date_from_isodate()
180 is_leap_year = timelib_is_leap(*y); in timelib_date_from_isodate()
H A Dtimelib_private.h105 #define timelib_is_leap(y) ((y) % 4 == 0 && ((y) % 100 != 0 || (y) % 400 == 0)) macro
H A Dtm2unixtime.c87 leapyear = timelib_is_leap(year); in do_range_limit_days_relative()
97 leapyear = timelib_is_leap(year); in do_range_limit_days_relative()
128 leapyear = timelib_is_leap(*y); in do_range_limit_days()
139 leapyear = timelib_is_leap(previous_year); in do_range_limit_days()
H A Dparse_posix.c417 int leap_year = timelib_is_leap(year); in calc_transition()
/PHP-8.2/ext/date/
H A Dphp_date.c727 case 'L': length = slprintf(buffer, sizeof(buffer), "%d", timelib_is_leap((int) t->y)); break; in date_format()
936 case 'L': retval = (int) timelib_is_leap((int) t->y); break; in php_idate()

Completed in 32 milliseconds