Lines Matching refs:m

44 static void inc_month(timelib_sll *y, timelib_sll *m)  in inc_month()  argument
46 (*m)++; in inc_month()
47 if (*m > 12) { in inc_month()
48 *m -= 12; in inc_month()
53 static void dec_month(timelib_sll *y, timelib_sll *m) in dec_month() argument
55 (*m)--; in dec_month()
56 if (*m < 1) { in dec_month()
57 *m += 12; in dec_month()
62 …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
85 (*m)--; in do_range_limit_days_relative()
95 (*m)--; in do_range_limit_days_relative()
104 static int do_range_limit_days(timelib_sll *y, timelib_sll *m, timelib_sll *d) in do_range_limit_days() argument
117 do_range_limit(1, 13, 12, m, y); in do_range_limit_days()
120 days_this_month = leapyear ? days_in_month_leap[*m] : days_in_month[*m]; in do_range_limit_days()
121 last_month = (*m) - 1; in do_range_limit_days()
134 (*m)--; in do_range_limit_days()
139 (*m)++; in do_range_limit_days()
149 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_for_weekday()
185 do_range_limit(0, 12, 12, &rt->m, &rt->y); in timelib_do_rel_normalize()
187 do_range_limit_days_relative(&base->y, &base->m, &rt->y, &rt->m, &rt->d, rt->invert); in timelib_do_rel_normalize()
188 do_range_limit(0, 12, 12, &rt->m, &rt->y); in timelib_do_rel_normalize()
213 time->m = mm; in magic_date_calc()
223 do_range_limit(1, 13, 12, &time->m, &time->y); in timelib_do_normalize()
226 if (time->y == 1970 && time->m == 1 && time->d != 1) { in timelib_do_normalize()
230 do {} while (do_range_limit_days(&time->y, &time->m, &time->d)); in timelib_do_normalize()
231 do_range_limit(1, 13, 12, &time->m, &time->y); in timelib_do_normalize()
249 time->m += time->relative.m; in do_adjust_relative()
259 time->m++; in do_adjust_relative()
271 dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday()
335 time->m += time->relative.m; in do_adjust_special_early()
336 time->relative.m = 0; in do_adjust_special_early()
340 time->m += time->relative.m + 1; in do_adjust_special_early()
341 time->relative.m = 0; in do_adjust_special_early()
351 time->m++; in do_adjust_special_early()
446 y -= time->m <= 2; in timelib_epoch_days_from_time()
449 …day_of_year = (153 * (time->m + (time->m > 2 ? -3 : 9)) + 2)/5 + time->d - 1; // [… in timelib_epoch_days_from_time()
480 time.y, time.m, time.d, time.h, time.i, time.s, time.f, time.z, time.dst);
483 …time.relative.y, time.relative.m, time.relative.d, time.relative.h, time.relative.i, time.relative…