Lines Matching refs:y

34 static timelib_sll timelib_day_of_week_ex(timelib_sll y, timelib_sll m, timelib_sll d, int iso)  in timelib_day_of_week_ex()  argument
44 c1 = century_value(y / 100); in timelib_day_of_week_ex()
45 y1 = (y % 100); in timelib_day_of_week_ex()
46 m1 = timelib_is_leap(y) ? m_table_leap[m] : m_table_common[m]; in timelib_day_of_week_ex()
56 timelib_sll timelib_day_of_week(timelib_sll y, timelib_sll m, timelib_sll d) in timelib_day_of_week() argument
58 return timelib_day_of_week_ex(y, m, d, 0); in timelib_day_of_week()
61 timelib_sll timelib_iso_day_of_week(timelib_sll y, timelib_sll m, timelib_sll d) in timelib_iso_day_of_week() argument
63 return timelib_day_of_week_ex(y, m, d, 1); in timelib_iso_day_of_week()
72 timelib_sll timelib_day_of_year(timelib_sll y, timelib_sll m, timelib_sll d) in timelib_day_of_year() argument
74 return (timelib_is_leap(y) ? d_table_leap[m] : d_table_common[m]) + d - 1; in timelib_day_of_year()
77 timelib_sll timelib_days_in_month(timelib_sll y, timelib_sll m) in timelib_days_in_month() argument
79 return timelib_is_leap(y) ? ml_table_leap[m] : ml_table_common[m]; in timelib_days_in_month()
82 void timelib_isoweek_from_date(timelib_sll y, timelib_sll m, timelib_sll d, timelib_sll *iw, timeli… in timelib_isoweek_from_date() argument
86 y_leap = timelib_is_leap(y); in timelib_isoweek_from_date()
87 prev_y_leap = timelib_is_leap(y-1); in timelib_isoweek_from_date()
88 doy = timelib_day_of_year(y, m, d) + 1; in timelib_isoweek_from_date()
92 jan1weekday = timelib_day_of_week(y, 1, 1); in timelib_isoweek_from_date()
93 weekday = timelib_day_of_week(y, m, d); in timelib_isoweek_from_date()
98 *iy = y - 1; in timelib_isoweek_from_date()
105 *iy = y; in timelib_isoweek_from_date()
108 if (*iy == y) { in timelib_isoweek_from_date()
113 *iy = y + 1; in timelib_isoweek_from_date()
119 if (*iy == y) { in timelib_isoweek_from_date()
130 timelib_sll timelib_daynr_from_weeknr(timelib_sll y, timelib_sll w, timelib_sll d) in timelib_daynr_from_weeknr() argument
135 dow = timelib_day_of_week(y, 1, 1); in timelib_daynr_from_weeknr()
151 int timelib_valid_date(timelib_sll y, timelib_sll m, timelib_sll d) in timelib_valid_date() argument
153 if (m < 1 || m > 12 || d < 1 || d > timelib_days_in_month(y, m)) { in timelib_valid_date()