Lines Matching refs:m

43 static void inc_month(timelib_sll *y, timelib_sll *m)  in inc_month()  argument
45 (*m)++; in inc_month()
46 if (*m > 12) { in inc_month()
47 *m -= 12; in inc_month()
52 static void dec_month(timelib_sll *y, timelib_sll *m) in dec_month() argument
54 (*m)--; in dec_month()
55 if (*m < 1) { in dec_month()
56 *m += 12; in dec_month()
61 …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
84 (*m)--; in do_range_limit_days_relative()
94 (*m)--; in do_range_limit_days_relative()
103 static int do_range_limit_days(timelib_sll *y, timelib_sll *m, timelib_sll *d) in do_range_limit_days() argument
116 do_range_limit(1, 13, 12, m, y); in do_range_limit_days()
119 days_this_month = leapyear ? days_in_month_leap[*m] : days_in_month[*m]; in do_range_limit_days()
120 last_month = (*m) - 1; in do_range_limit_days()
133 (*m)--; in do_range_limit_days()
138 (*m)++; 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()
205 time->m += time->relative.m; in do_adjust_relative()
215 time->m++; in do_adjust_relative()
227 dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday()
291 time->m += time->relative.m; in do_adjust_special_early()
292 time->relative.m = 0; in do_adjust_special_early()
296 time->m += time->relative.m + 1; in do_adjust_special_early()
297 time->relative.m = 0; in do_adjust_special_early()
307 time->m++; in do_adjust_special_early()
445 res += do_months(time->m, time->y); in timelib_update_ts()
465 time.y, time.m, time.d, time.h, time.i, time.s, time.f, time.z, time.dst);
468 …time.relative.y, time.relative.m, time.relative.d, time.relative.h, time.relative.i, time.relative…