Lines Matching refs:relative

154 	if (time->relative.weekday_behavior == 2)  in do_adjust_for_weekday()
157 if (current_dow == 0 && time->relative.weekday != 0) { in do_adjust_for_weekday()
158 time->relative.weekday -= 7; in do_adjust_for_weekday()
163 if (time->relative.weekday == 0 && current_dow != 0) { in do_adjust_for_weekday()
164 time->relative.weekday = 7; in do_adjust_for_weekday()
168 time->d += time->relative.weekday; in do_adjust_for_weekday()
171 difference = time->relative.weekday - current_dow; in do_adjust_for_weekday()
172 …if ((time->relative.d < 0 && difference < 0) || (time->relative.d >= 0 && difference <= -time->rel… in do_adjust_for_weekday()
175 if (time->relative.weekday >= 0) { in do_adjust_for_weekday()
178 time->d -= (7 - (abs(time->relative.weekday) - current_dow)); in do_adjust_for_weekday()
180 time->relative.have_weekday_relative = 0; in do_adjust_for_weekday()
242 if (time->relative.have_weekday_relative) { in do_adjust_relative()
248 time->us += time->relative.us; in do_adjust_relative()
250 time->s += time->relative.s; in do_adjust_relative()
251 time->i += time->relative.i; in do_adjust_relative()
252 time->h += time->relative.h; in do_adjust_relative()
254 time->d += time->relative.d; in do_adjust_relative()
255 time->m += time->relative.m; in do_adjust_relative()
256 time->y += time->relative.y; in do_adjust_relative()
259 switch (time->relative.first_last_day_of) { in do_adjust_relative()
276 count = time->relative.special.amount; in do_adjust_special_weekday()
324 if (time->relative.have_special_relative) { in do_adjust_special()
325 switch (time->relative.special.type) { in do_adjust_special()
332 memset(&(time->relative.special), 0, sizeof(time->relative.special)); in do_adjust_special()
337 if (time->relative.have_special_relative) { in do_adjust_special_early()
338 switch (time->relative.special.type) { in do_adjust_special_early()
341 time->m += time->relative.m; in do_adjust_special_early()
342 time->relative.m = 0; in do_adjust_special_early()
346 time->m += time->relative.m + 1; in do_adjust_special_early()
347 time->relative.m = 0; in do_adjust_special_early()
351 switch (time->relative.first_last_day_of) { in do_adjust_special_early()
511 …time->have_relative = time->relative.have_weekday_relative = time->relative.have_special_relative … in timelib_update_ts()
525 …time.relative.y, time.relative.m, time.relative.d, time.relative.h, time.relative.i, time.relative
528 printf (" / %d", time.relative.weekday);