Home
last modified time | relevance | path

Searched refs:dayOfWeek (Results 1 – 25 of 45) sorted by relevance

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DSimpleHoliday.java110 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name) in SimpleHoliday() argument
113 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday()
114 dayOfWeek > 0)); in SimpleHoliday()
121 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument
126 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday()
127 dayOfWeek > 0))); in SimpleHoliday()
135 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument
140 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday()
141 dayOfWeek > 0))); in SimpleHoliday()
DDateTimeRule.java81 private final int dayOfWeek; field in DateTimeRule
110 this.dayOfWeek = 0; in DateTimeRule()
130 public DateTimeRule(int month, int weekInMonth, int dayOfWeek, in DateTimeRule() argument
135 this.dayOfWeek = dayOfWeek; in DateTimeRule()
160 public DateTimeRule(int month, int dayOfMonth, int dayOfWeek, boolean after, in DateTimeRule() argument
165 this.dayOfWeek = dayOfWeek; in DateTimeRule()
217 return dayOfWeek; in getRuleDayOfWeek()
275 sDate = Integer.toString(weekInMonth) + DOWSTR[dayOfWeek]; in toString()
278 sDate = DOWSTR[dayOfWeek] + ">=" + Integer.toString(dayOfMonth); in toString()
281 sDate = DOWSTR[dayOfWeek] + "<=" + Integer.toString(dayOfMonth); in toString()
DSimpleDateRule.java34 this.dayOfWeek = 0; in SimpleDateRule()
42 this.dayOfWeek = 0; in SimpleDateRule()
58 public SimpleDateRule(int month, int dayOfMonth, int dayOfWeek, boolean after) in SimpleDateRule() argument
62 this.dayOfWeek = after ? dayOfWeek : -dayOfWeek; in SimpleDateRule()
188 if (dayOfWeek != 0) { in computeInYear()
196 if (dayOfWeek > 0) { in computeInYear()
199 delta = (dayOfWeek - weekday + 7) % 7; in computeInYear()
204 delta = -((dayOfWeek + weekday + 7) % 7); in computeInYear()
228 private int dayOfWeek; field in SimpleDateRule
DSimpleTimeZone.java316 public void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, in setStartRule() argument
322 getSTZInfo().setStart(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setStartRule()
323 setStartRule(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME); in setStartRule()
364 private void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time, int mode) { in setStartRule() argument
369 startDayOfWeek = dayOfWeek; in setStartRule()
415 public void setStartRule(int month, int dayOfMonth, int dayOfWeek, int time, boolean after) { in setStartRule() argument
420 getSTZInfo().setStart(month, -1, dayOfWeek, time, dayOfMonth, after); in setStartRule()
422 -dayOfWeek, time, WALL_TIME); in setStartRule()
445 public void setEndRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time) { in setEndRule() argument
450 getSTZInfo().setEnd(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setEndRule()
[all …]
DVTimeZone.java79 public int getOffset(int era, int year, int month, int day, int dayOfWeek, in getOffset() argument
81 return tz.getOffset(era, year, month, day, dayOfWeek, milliseconds); in getOffset()
873 int dayOfWeek = ruleFields[1]; in createRuleByRRULE() local
882 if (ruleFields.length != 10 || month == -1 || dayOfWeek == 0) { in createRuleByRRULE()
917 if (month == -1 || dayOfWeek == 0 || dayOfMonth == 0) { in createRuleByRRULE()
963 if (fields[1] != dayOfWeek) { in createRuleByRRULE()
1013 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { in createRuleByRRULE()
1027 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE()
1030 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { in createRuleByRRULE()
1032 … adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, timeInDay, DateTimeRule.WALL_TIME); in createRuleByRRULE()
[all …]
DCalendar.java3849 protected int weekNumber(int desiredDay, int dayOfPeriod, int dayOfWeek) in weekNumber() argument
3854 int periodStartDayOfWeek = (dayOfWeek - getFirstDayOfWeek() - dayOfPeriod + 1) % 7; in weekNumber()
3900 protected final int weekNumber(int dayOfPeriod, int dayOfWeek) in weekNumber() argument
3902 return weekNumber(dayOfPeriod, dayOfPeriod, dayOfWeek); in weekNumber()
4489 public int getDayOfWeekType(int dayOfWeek) { in getDayOfWeekType() argument
4490 if (dayOfWeek < SUNDAY || dayOfWeek > SATURDAY) { in getDayOfWeekType()
4494 if (dayOfWeek != weekendOnset) in getDayOfWeekType()
4499 if (dayOfWeek < weekendOnset || dayOfWeek > weekendCease) { in getDayOfWeekType()
4503 if (dayOfWeek > weekendCease && dayOfWeek < weekendOnset) { in getDayOfWeekType()
4507 if (dayOfWeek == weekendOnset) { in getDayOfWeekType()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dsimpletz.h311 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
357 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
405 void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
425 void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
450 void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
477 void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
525 void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
546 void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
570 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const;
588 uint8_t dayOfWeek, int32_t milliseconds,
[all …]
Dvtzone.h213 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const;
235 uint8_t dayOfWeek, int32_t millis,
392 int32_t month, int32_t weekInMonth, int32_t dayOfWeek,
396 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
399 int32_t dayOfWeek, int32_t numDays,
403 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
Ddtrule.h87 DateTimeRule(int32_t month, int32_t weekInMonth, int32_t dayOfWeek,
105 DateTimeRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, UBool after,
Dcalendar.h1392 …virtual UCalendarWeekdayType getDayOfWeekType(UCalendarDaysOfWeek dayOfWeek, UErrorCode &status) c…
1408 virtual int32_t getWeekendTransition(UCalendarDaysOfWeek dayOfWeek, UErrorCode &status) const;
2099 int32_t weekNumber(int32_t desiredDay, int32_t dayOfPeriod, int32_t dayOfWeek);
2133 inline int32_t weekNumber(int32_t dayOfPeriod, int32_t dayOfWeek);
2539 inline int32_t Calendar::weekNumber(int32_t dayOfPeriod, int32_t dayOfWeek) in weekNumber() argument
2541 return weekNumber(dayOfPeriod, dayOfPeriod, dayOfWeek); in weekNumber()
Drbtz.h149 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const;
171 uint8_t dayOfWeek, int32_t millis,
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java107 public static int dayOfWeek(long day) { in dayOfWeek() method in Grego
110 int dayOfWeek = (int)remainder[0]; in dayOfWeek() local
111 dayOfWeek = (dayOfWeek == 0) ? 7 : dayOfWeek; in dayOfWeek()
112 return dayOfWeek; in dayOfWeek()
145 int dayOfWeek = (int)((day + 2) % 7); // day 0 is Monday(2) in dayToFields() local
146 if (dayOfWeek < 1 /* Sunday */) { in dayToFields()
147 dayOfWeek += 7; in dayToFields()
154 fields[3] = dayOfWeek; in dayToFields()
DTimeZoneAdapter.java83 public int getOffset(int era, int year, int month, int day, int dayOfWeek, in getOffset() argument
85 return zone.getOffset(era, year, month, day, dayOfWeek, millis); in getOffset()
/external/icu/icu4c/source/i18n/
Dsimpletz.cpp307 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, in setStartRule() argument
312 startDayOfWeek = (int8_t)dayOfWeek; in setStartRule()
331 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, in setStartRule() argument
335 -dayOfWeek, time, mode, status); in setStartRule()
359 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, in setEndRule() argument
364 endDayOfWeek = (int8_t)dayOfWeek; in setEndRule()
383 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, in setEndRule() argument
387 -dayOfWeek, time, mode, status); in setEndRule()
394 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument
408 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset()
[all …]
Ddtrule.cpp30 int32_t dayOfWeek, in DateTimeRule() argument
33 : fMonth(month), fDayOfMonth(0), fDayOfWeek(dayOfWeek), fWeekInMonth(weekInMonth), fMillisInDay(mil… in DateTimeRule()
39 int32_t dayOfWeek, in DateTimeRule() argument
44 …fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(dayOfWeek), fWeekInMonth(0), fMillisInDay(milli… in DateTimeRule()
Dvtzone.cpp539 int32_t month, dayOfWeek, nthDayOfWeek, dayOfMonth = 0; in createRuleByRRULE() local
544 parseRRULE(rrule, month, dayOfWeek, nthDayOfWeek, days, daysCount, until, status); in createRuleByRRULE()
553 if (daysCount != 7 || month == -1 || dayOfWeek == 0) { in createRuleByRRULE()
590 if (month == -1 || dayOfWeek == 0 || daysCount == 0) { in createRuleByRRULE()
639 if (tmp_dayOfWeek != dayOfWeek) { in createRuleByRRULE()
689 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { in createRuleByRRULE()
703 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE()
706 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { in createRuleByRRULE()
708 adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, startMID, DateTimeRule::WALL_TIME); in createRuleByRRULE()
709 } else if (dayOfWeek != 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE()
[all …]
Dvzone.cpp118 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) { in vzone_getOffset() argument
119 … return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, status); in vzone_getOffset()
124 uint8_t dayOfWeek, int32_t millis, in vzone_getOffset2() argument
126 …return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, monthLen… in vzone_getOffset2()
Dcalendar.cpp1558 int8_t dayOfWeek = (int8_t) uprv_fmod(julian + 1, 7); in julianDayToDayOfWeek() local
1560 uint8_t result = (uint8_t)(dayOfWeek + ((dayOfWeek < 0) ? (7+UCAL_SUNDAY ) : UCAL_SUNDAY)); in julianDayToDayOfWeek()
1624 int32_t dayOfWeek = fFields[UCAL_DAY_OF_WEEK]; in computeWeekFields() local
1637 int32_t relDow = (dayOfWeek + 7 - getFirstDayOfWeek()) % 7; // 0..6 in computeWeekFields()
1638 int32_t relDowJan1 = (dayOfWeek - dayOfYear + 7001 - getFirstDayOfWeek()) % 7; // 0..6 in computeWeekFields()
1653 woy = weekNumber(prevDoy, dayOfWeek); in computeWeekFields()
1680 fFields[UCAL_WEEK_OF_MONTH] = weekNumber(dayOfMonth, dayOfWeek); in computeWeekFields()
1689 int32_t Calendar::weekNumber(int32_t desiredDay, int32_t dayOfPeriod, int32_t dayOfWeek) in weekNumber() argument
1694 int32_t periodStartDayOfWeek = (dayOfWeek - getFirstDayOfWeek() - dayOfPeriod + 1) % 7; in weekNumber()
2518 Calendar::getDayOfWeekType(UCalendarDaysOfWeek dayOfWeek, UErrorCode &status) const in getDayOfWeekType() argument
[all …]
Dvzone.h189 uint8_t dayOfWeek, int32_t millis, UErrorCode& status);
212 uint8_t dayOfWeek, int32_t millis,
Dolsontz.h168 int32_t day, uint8_t dayOfWeek,
175 int32_t day, uint8_t dayOfWeek,
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DTestCase.java91 int dayOfWeek, in TestCase() argument
100 set(Calendar.DAY_OF_WEEK, dayOfWeek); in TestCase()
125 int dayOfWeek, in TestCase() argument
137 set(Calendar.DAY_OF_WEEK, dayOfWeek); in TestCase()
DChineseTestCase.java32 boolean isLeapMonth, int dayOfMonth, int dayOfWeek) { in ChineseTestCase() argument
41 set(Calendar.DAY_OF_WEEK, dayOfWeek); in ChineseTestCase()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DTimeZoneICU.java67 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) { in getOffset() argument
68 return fIcuTz.getOffset(era, year, month, day, dayOfWeek, milliseconds); in getOffset()
/external/icu/icu4c/source/test/intltest/
Dtzregts.cpp473 int32_t dayOfWeek = cal->get(UCAL_DAY_OF_WEEK, status); in Test4126678() local
481 …int32_t offset = tz->getOffset((uint8_t)era, year, month, day, (uint8_t)dayOfWeek, millis, status); in Test4126678()
626 int32_t dayOfWeek = DATA[i+3]; in Test4154542() local
633 zone->setStartRule(month, day, dayOfWeek, time, status); in Test4154542()
639 ", dayOfWeek=" + dayOfWeek + ", time=" + time + in Test4154542()
647 zone->setEndRule(month, day, dayOfWeek, time, status); in Test4154542()
653 ", dayOfWeek=" + dayOfWeek + ", time=" + time + in Test4154542()
663 (int8_t)month, (int8_t)day, (int8_t)dayOfWeek, time, in Test4154542()
671 ", dayOfWeek=" + dayOfWeek + ", time=" + time + in Test4154542()
683 (int8_t)month, (int8_t)day, (int8_t)dayOfWeek, time,status); in Test4154542()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRegression.java322 int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK); in Test4126678() local
329 long offset = tz.getOffset(era, year, month, day, dayOfWeek, millis); in Test4126678()
492 int dayOfWeek = DATA[i+3]; in Test4154542() local
497 zone.setStartRule(month, day, dayOfWeek, time); in Test4154542()
503 ", dayOfWeek=" + dayOfWeek + ", time=" + time + in Test4154542()
510 zone.setEndRule(month, day, dayOfWeek, time); in Test4154542()
516 ", dayOfWeek=" + dayOfWeek + ", time=" + time + in Test4154542()
524 month, day, dayOfWeek, time, in Test4154542()
531 ", dayOfWeek=" + dayOfWeek + ", time=" + time + in Test4154542()
540 month, day, dayOfWeek, time); in Test4154542()
[all …]

12