Searched refs:newWeek (Results 1 – 1 of 1) sorted by relevance
1153 int days, day, mod, maxWeeks, newWeek; in roll() local1165 newWeek = mod(fields[field] - 1 + value, maxWeeks) + 1; in roll()1166 if (newWeek == maxWeeks) { in roll()1167 int addDays = (newWeek - fields[field]) * 7; in roll()1171 set(field, newWeek - 1); in roll()1173 } else if (newWeek == 1) { in roll()1178 set(field, newWeek); in roll()1181 set(field, newWeek); in roll()1190 newWeek = mod(fields[field] - 1 + value, maxWeeks) + 1; in roll()1191 if (newWeek == maxWeeks) { in roll()[all …]