Lines Matching refs:dayOfWeek

272  * The dayOfWeekInMonth and dayOfWeek parameters together specify how to calculate
275 * <li>If both dayOfWeekInMonth and dayOfWeek are positive, they specify the
278 * <li>If dayOfWeek is positive and dayOfWeekInMonth is negative, they specify
281 * <li>If dayOfWeek is zero and dayOfWeekInMonth is positive, dayOfWeekInMonth
284 * <li>If dayOfWeek is zero and dayOfWeekInMonth is negative, dayOfWeekInMonth
288 * <li>If dayOfWeek is negative and dayOfWeekInMonth is positive, they specify the
292 * <li>If dayOfWeek and DayOfWeekInMonth are both negative, they specify the
300 * @param dayOfWeek the daylight savings starting day-of-week. Please see
307 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
312 startDayOfWeek = (int8_t)dayOfWeek;
331 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
335 -dayOfWeek, time, mode, status);
345 * Various other types of rules can be specified by manipulating the dayOfWeek
352 * @param dayOfWeek the daylight savings ending day-of-week. See setStartRule()
359 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
364 endDayOfWeek = (int8_t)dayOfWeek;
383 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
387 -dayOfWeek, time, mode, status);
394 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const
408 return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status);
413 uint8_t dayOfWeek, int32_t millis,
432 return getOffset(era, year, month, day, dayOfWeek, millis,
440 uint8_t dayOfWeek, int32_t millis,
451 || dayOfWeek < UCAL_SUNDAY
452 || dayOfWeek > UCAL_SATURDAY
476 (int8_t)day, (int8_t)dayOfWeek, millis,
490 (int8_t)day, (int8_t)dayOfWeek, millis,
571 int8_t dayOfWeek, int32_t millis, int32_t millisDelta,
580 dayOfWeek = (int8_t)(1 + (dayOfWeek % 7)); // dayOfWeek is one-based
593 dayOfWeek = (int8_t)(1 + ((dayOfWeek+5) % 7)); // dayOfWeek is one-based
623 // the dayOfWeek and dayOfMonth parameters to figure out the day-of-week
628 (7 + ruleDayOfWeek - (dayOfWeek - dayOfMonth + 1)) % 7;
634 // (again, this code is trusting that dayOfWeek and dayOfMonth are
638 (7 + (dayOfWeek + monthLen - dayOfMonth) - ruleDayOfWeek) % 7;
644 (49 + ruleDayOfWeek - ruleDay - dayOfWeek + dayOfMonth) % 7;
649 (49 - ruleDayOfWeek + ruleDay + dayOfWeek - dayOfMonth) % 7;
851 * dayOfWeek 1..7 0 -1..-7 -1..-7 don't care