Lines Matching refs:m

60 static void inc_month(timelib_sll *y, timelib_sll *m)  in inc_month()  argument
62 (*m)++; in inc_month()
63 if (*m > 12) { in inc_month()
64 *m -= 12; in inc_month()
69 static void dec_month(timelib_sll *y, timelib_sll *m) in dec_month() argument
71 (*m)--; in dec_month()
72 if (*m < 1) { in dec_month()
73 *m += 12; in dec_month()
78 …tive(timelib_sll *base_y, timelib_sll *base_m, timelib_sll *y, timelib_sll *m, timelib_sll *d, tim… in do_range_limit_days_relative() argument
101 (*m)--; in do_range_limit_days_relative()
111 (*m)--; in do_range_limit_days_relative()
120 static int do_range_limit_days(timelib_sll *y, timelib_sll *m, timelib_sll *d) in do_range_limit_days() argument
133 do_range_limit(1, 13, 12, m, y); in do_range_limit_days()
136 days_this_month = leapyear ? days_in_month_leap[*m] : days_in_month[*m]; in do_range_limit_days()
137 last_month = (*m) - 1; in do_range_limit_days()
150 (*m)--; in do_range_limit_days()
155 (*m)++; 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()
231 time->m = mm; 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()
267 time->m += time->relative.m; in do_adjust_relative()
277 time->m++; in do_adjust_relative()
289 dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday()
353 time->m += time->relative.m; in do_adjust_special_early()
354 time->relative.m = 0; in do_adjust_special_early()
358 time->m += time->relative.m + 1; in do_adjust_special_early()
359 time->relative.m = 0; in do_adjust_special_early()
369 time->m++; in do_adjust_special_early()
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…