Lines Matching refs:y

60 static void inc_month(timelib_sll *y, timelib_sll *m)  in inc_month()  argument
65 (*y)++; in inc_month()
69 static void dec_month(timelib_sll *y, timelib_sll *m) in dec_month() argument
74 (*y)--; in dec_month()
78 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
120 static int do_range_limit_days(timelib_sll *y, timelib_sll *m, timelib_sll *d) in do_range_limit_days() argument
129 *y += YEARS_PER_LYEAR_PERIOD * (*d / DAYS_PER_LYEAR_PERIOD); in do_range_limit_days()
133 do_range_limit(1, 13, 12, m, y); in do_range_limit_days()
135 leapyear = timelib_is_leap(*y); in do_range_limit_days()
141 last_year = (*y) - 1; in do_range_limit_days()
143 last_year = (*y); in do_range_limit_days()
165 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_for_weekday()
201 do_range_limit(0, 12, 12, &rt->m, &rt->y); in timelib_do_rel_normalize()
203 do_range_limit_days_relative(&base->y, &base->m, &rt->y, &rt->m, &rt->d, rt->invert); in timelib_do_rel_normalize()
204 do_range_limit(0, 12, 12, &rt->m, &rt->y); in timelib_do_rel_normalize()
211 timelib_sll y, ddd, mi, mm, dd, g; in magic_date_calc() local
220 y = (10000 * g + 14780) / 3652425; in magic_date_calc()
221 ddd = g - ((365*y) + (y/4) - (y/100) + (y/400)); in magic_date_calc()
223 y--; in magic_date_calc()
224 ddd = g - ((365*y) + (y/4) - (y/100) + (y/400)); in magic_date_calc()
228 y = y + (mi + 2) / 12; in magic_date_calc()
230 time->y = y; in magic_date_calc()
241 do_range_limit(1, 13, 12, &time->m, &time->y); in timelib_do_normalize()
244 if (time->y == 1970 && time->m == 1 && time->d != 1) { in timelib_do_normalize()
248 do {} while (do_range_limit_days(&time->y, &time->m, &time->d)); in timelib_do_normalize()
249 do_range_limit(1, 13, 12, &time->m, &time->y); in timelib_do_normalize()
268 time->y += time->relative.y; in do_adjust_relative()
289 dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday()
505 res += do_years(time->y); in timelib_update_ts()
506 res += do_months(time->m, time->y); in timelib_update_ts()
526 time.y, time.m, time.d, time.h, time.i, time.s, time.f, time.z, time.dst);
529 …time.relative.y, time.relative.m, time.relative.d, time.relative.h, time.relative.i, time.relative…