Home | History | Annotate | Download | only in i18n

Lines Matching refs:dayOfWeek

269  * The dayOfWeekInMonth and dayOfWeek parameters together specify how to calculate
272 * <li>If both dayOfWeekInMonth and dayOfWeek are positive, they specify the
275 * <li>If dayOfWeek is positive and dayOfWeekInMonth is negative, they specify
278 * <li>If dayOfWeek is zero and dayOfWeekInMonth is positive, dayOfWeekInMonth
281 * <li>If dayOfWeek is zero and dayOfWeekInMonth is negative, dayOfWeekInMonth
285 * <li>If dayOfWeek is negative and dayOfWeekInMonth is positive, they specify the
289 * <li>If dayOfWeek and DayOfWeekInMonth are both negative, they specify the
297 * @param dayOfWeek the daylight savings starting day-of-week. Please see
304 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
309 startDayOfWeek = (int8_t)dayOfWeek;
328 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
332 -dayOfWeek, time, mode, status);
342 * Various other types of rules can be specified by manipulating the dayOfWeek
349 * @param dayOfWeek the daylight savings ending day-of-week. See setStartRule()
356 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
361 endDayOfWeek = (int8_t)dayOfWeek;
380 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
384 -dayOfWeek, time, mode, status);
391 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const
405 return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status);
410 uint8_t dayOfWeek, int32_t millis,
429 return getOffset(era, year, month, day, dayOfWeek, millis,
437 uint8_t dayOfWeek, int32_t millis,
448 || dayOfWeek < UCAL_SUNDAY
449 || dayOfWeek > UCAL_SATURDAY
473 (int8_t)day, (int8_t)dayOfWeek, millis,
487 (int8_t)day, (int8_t)dayOfWeek, millis,
568 int8_t dayOfWeek, int32_t millis, int32_t millisDelta,
577 dayOfWeek = (int8_t)(1 + (dayOfWeek % 7)); // dayOfWeek is one-based
590 dayOfWeek = (int8_t)(1 + ((dayOfWeek+5) % 7)); // dayOfWeek is one-based
620 // the dayOfWeek and dayOfMonth parameters to figure out the day-of-week
625 (7 + ruleDayOfWeek - (dayOfWeek - dayOfMonth + 1)) % 7;
631 // (again, this code is trusting that dayOfWeek and dayOfMonth are
635 (7 + (dayOfWeek + monthLen - dayOfMonth) - ruleDayOfWeek) % 7;
641 (49 + ruleDayOfWeek - ruleDay - dayOfWeek + dayOfMonth) % 7;
646 (49 - ruleDayOfWeek + ruleDay + dayOfWeek - dayOfMonth) % 7;
848 * dayOfWeek 1..7 0 -1..-7 -1..-7 don't care