Lines Matching refs:y
43 static void inc_month(timelib_sll *y, timelib_sll *m) in inc_month() argument
48 (*y)++; in inc_month()
52 static void dec_month(timelib_sll *y, timelib_sll *m) in dec_month() argument
57 (*y)--; in dec_month()
61 static void do_range_limit_days_relative(timelib_sll *base_y, timelib_sll *base_m, timelib_sll *y, … in do_range_limit_days_relative() argument
103 static int do_range_limit_days(timelib_sll *y, timelib_sll *m, timelib_sll *d) in do_range_limit_days() argument
112 *y += YEARS_PER_LYEAR_PERIOD * (*d / DAYS_PER_LYEAR_PERIOD); in do_range_limit_days()
116 do_range_limit(1, 13, 12, m, y); in do_range_limit_days()
118 leapyear = timelib_is_leap(*y); in do_range_limit_days()
124 last_year = (*y) - 1; in do_range_limit_days()
126 last_year = (*y); in do_range_limit_days()
148 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_for_weekday()
175 do_range_limit(0, 12, 12, &rt->m, &rt->y); in timelib_do_rel_normalize()
177 do_range_limit_days_relative(&base->y, &base->m, &rt->y, &rt->m, &rt->d, rt->invert); in timelib_do_rel_normalize()
178 do_range_limit(0, 12, 12, &rt->m, &rt->y); in timelib_do_rel_normalize()
186 do_range_limit(1, 13, 12, &time->m, &time->y); in timelib_do_normalize()
188 do {} while (do_range_limit_days(&time->y, &time->m, &time->d)); in timelib_do_normalize()
189 do_range_limit(1, 13, 12, &time->m, &time->y); in timelib_do_normalize()
206 time->y += time->relative.y; in do_adjust_relative()
226 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday()
248 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday()
265 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday()
436 res += do_years(time->y); in timelib_update_ts()
437 res += do_months(time->m, time->y); in timelib_update_ts()
457 time.y, time.m, time.d, time.h, time.i, time.s, time.f, time.z, time.dst);
460 …time.relative.y, time.relative.m, time.relative.d, time.relative.h, time.relative.i, time.relative…