Lines Matching refs:dayOfWeek

271  * The dayOfWeekInMonth and dayOfWeek parameters together specify how to calculate
274 * <li>If both dayOfWeekInMonth and dayOfWeek are positive, they specify the
277 * <li>If dayOfWeek is positive and dayOfWeekInMonth is negative, they specify
280 * <li>If dayOfWeek is zero and dayOfWeekInMonth is positive, dayOfWeekInMonth
283 * <li>If dayOfWeek is zero and dayOfWeekInMonth is negative, dayOfWeekInMonth
287 * <li>If dayOfWeek is negative and dayOfWeekInMonth is positive, they specify the
291 * <li>If dayOfWeek and DayOfWeekInMonth are both negative, they specify the
299 * @param dayOfWeek the daylight savings starting day-of-week. Please see
306 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
311 startDayOfWeek = (int8_t)dayOfWeek;
330 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
334 -dayOfWeek, time, mode, status);
344 * Various other types of rules can be specified by manipulating the dayOfWeek
351 * @param dayOfWeek the daylight savings ending day-of-week. See setStartRule()
358 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
363 endDayOfWeek = (int8_t)dayOfWeek;
382 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
386 -dayOfWeek, time, mode, status);
393 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const
407 return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status);
412 uint8_t dayOfWeek, int32_t millis,
431 return getOffset(era, year, month, day, dayOfWeek, millis,
439 uint8_t dayOfWeek, int32_t millis,
450 || dayOfWeek < UCAL_SUNDAY
451 || dayOfWeek > UCAL_SATURDAY
475 (int8_t)day, (int8_t)dayOfWeek, millis,
489 (int8_t)day, (int8_t)dayOfWeek, millis,
570 int8_t dayOfWeek, int32_t millis, int32_t millisDelta,
579 dayOfWeek = (int8_t)(1 + (dayOfWeek % 7)); // dayOfWeek is one-based
592 dayOfWeek = (int8_t)(1 + ((dayOfWeek+5) % 7)); // dayOfWeek is one-based
622 // the dayOfWeek and dayOfMonth parameters to figure out the day-of-week
627 (7 + ruleDayOfWeek - (dayOfWeek - dayOfMonth + 1)) % 7;
633 // (again, this code is trusting that dayOfWeek and dayOfMonth are
637 (7 + (dayOfWeek + monthLen - dayOfMonth) - ruleDayOfWeek) % 7;
643 (49 + ruleDayOfWeek - ruleDay - dayOfWeek + dayOfMonth) % 7;
648 (49 - ruleDayOfWeek + ruleDay + dayOfWeek - dayOfMonth) % 7;
850 * dayOfWeek 1..7 0 -1..-7 -1..-7 don't care