Lines Matching refs:current_dow
146 timelib_sll current_dow, difference; in do_adjust_for_weekday() local
148 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_for_weekday()
154 time->d -= current_dow; in do_adjust_for_weekday()
158 difference = time->relative.weekday - current_dow; in do_adjust_for_weekday()
165 time->d -= (7 - (abs(time->relative.weekday) - current_dow)); in do_adjust_for_weekday()
222 timelib_sll current_dow, count; in do_adjust_special_weekday() local
226 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday()
229 if (current_dow == 6) { in do_adjust_special_weekday()
233 if (current_dow == 0) { in do_adjust_special_weekday()
238 if (current_dow == 5) { in do_adjust_special_weekday()
242 if (current_dow == 6) { in do_adjust_special_weekday()
248 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday()
250 if ((count % 5) + current_dow > 5) { in do_adjust_special_weekday()
255 if (current_dow == 1) { in do_adjust_special_weekday()
259 if (current_dow == 0 ) { in do_adjust_special_weekday()
265 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday()
267 if ((count % 5) + current_dow < 1) { in do_adjust_special_weekday()