/libcore/luni/src/main/java/java/util/ |
Grego.java | 107 public static int dayOfWeek(long day) {
110 int dayOfWeek = (int)remainder[0];
111 dayOfWeek = (dayOfWeek == 0) ? 7 : dayOfWeek;
112 return dayOfWeek;
145 int dayOfWeek = (int)((day + 2) % 7); // day 0 is Monday(2)
146 if (dayOfWeek < 1 /* Sunday */) {
147 dayOfWeek += 7;
154 fields[3] = dayOfWeek;
[all...] |
SimpleTimeZone.java | 192 * if the month, day, dayOfWeek, or time parameters are out of 241 * if the month, day, dayOfWeek, or time parameters are out of 319 * if the month, day, dayOfWeek, or time parameters are out of 385 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int time) { 389 checkRange(month, dayOfWeek, time); 395 // return icuTZ.getOffset(era, year, month, day, dayOfWeek, time); 409 int ruleDay = 0, daysInMonth, firstDayOfMonth = mod7(dayOfWeek - day); 608 private void checkRange(int month, int dayOfWeek, int time) { 612 if (dayOfWeek < Calendar.SUNDAY || dayOfWeek > Calendar.SATURDAY) [all...] |
GregorianCalendar.java | 821 int dayOfWeek; 823 dayOfWeek = fields[DAY_OF_WEEK] - 1; 825 dayOfWeek = getFirstDayOfWeek() - 1; 831 + mod7(skew + dayOfWeek - (days - 3)) - skew; 834 days += mod7(dayOfWeek - (days - 3)) 838 + mod7(dayOfWeek [all...] |
/external/chromium/third_party/icu/public/i18n/unicode/ |
simpletz.h | 54 * along with <code>dayOfWeek = UCAL_SUNDAY</code> to specify the rule. 274 * The dayOfWeekInMonth and dayOfWeek parameters together specify how to calculate 278 * <li>If both dayOfWeekInMonth and dayOfWeek are positive, they specify the 281 * <li>If dayOfWeek is positive and dayOfWeekInMonth is negative, they specify 284 * <li>If dayOfWeek is zero and dayOfWeekInMonth is positive, dayOfWeekInMonth 287 * <li>If dayOfWeek is zero and dayOfWeekInMonth is negative, dayOfWeekInMonth 291 * <li>If dayOfWeek is negative and dayOfWeekInMonth is positive, they specify the 295 * <li>If dayOfWeek and DayOfWeekInMonth are both negative, they specify the 304 * @param dayOfWeek the daylight savings starting day-of-week. Please see 311 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, [all...] |
dtrule.h | 81 * @param dayOfWeek The day of week, for example, <code>Calendar::SUNDAY</code>. 87 DateTimeRule(int32_t month, int32_t weekInMonth, int32_t dayOfWeek, 98 * @param dayOfWeek The day of week, for example, <code>Calendar::SUNDAY</code>. 105 DateTimeRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, UBool after,
|
vtzone.h | 194 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 201 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const; 215 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 223 uint8_t dayOfWeek, int32_t millis, 380 int32_t month, int32_t weekInMonth, int32_t dayOfWeek, 384 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, 387 int32_t dayOfWeek, int32_t numDays, 391 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
|
rbtz.h | 142 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 149 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const; 163 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 171 uint8_t dayOfWeek, int32_t millis,
|
timezone.h | 409 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 416 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const = 0; 431 * @param dayOfWeek the day-of-week of the given date. 439 uint8_t dayOfWeek, int32_t milliseconds, [all...] |
/external/icu4c/i18n/unicode/ |
simpletz.h | 54 * along with <code>dayOfWeek = UCAL_SUNDAY</code> to specify the rule. 274 * The dayOfWeekInMonth and dayOfWeek parameters together specify how to calculate 278 * <li>If both dayOfWeekInMonth and dayOfWeek are positive, they specify the 281 * <li>If dayOfWeek is positive and dayOfWeekInMonth is negative, they specify 284 * <li>If dayOfWeek is zero and dayOfWeekInMonth is positive, dayOfWeekInMonth 287 * <li>If dayOfWeek is zero and dayOfWeekInMonth is negative, dayOfWeekInMonth 291 * <li>If dayOfWeek is negative and dayOfWeekInMonth is positive, they specify the 295 * <li>If dayOfWeek and DayOfWeekInMonth are both negative, they specify the 304 * @param dayOfWeek the daylight savings starting day-of-week. Please see 311 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, [all...] |
dtrule.h | 81 * @param dayOfWeek The day of week, for example, <code>Calendar::SUNDAY</code>. 87 DateTimeRule(int32_t month, int32_t weekInMonth, int32_t dayOfWeek, 98 * @param dayOfWeek The day of week, for example, <code>Calendar::SUNDAY</code>. 105 DateTimeRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, UBool after,
|
vtzone.h | 194 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 201 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const; 215 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 223 uint8_t dayOfWeek, int32_t millis, 380 int32_t month, int32_t weekInMonth, int32_t dayOfWeek, 384 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, 387 int32_t dayOfWeek, int32_t numDays, 391 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
|
calendar.h | [all...] |
rbtz.h | 142 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 149 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const; 163 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 171 uint8_t dayOfWeek, int32_t millis,
|
timezone.h | 343 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 350 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const = 0; 365 * @param dayOfWeek the day-of-week of the given date. 373 uint8_t dayOfWeek, int32_t milliseconds,
|
/external/chromium/third_party/icu/source/i18n/ |
dtrule.cpp | 28 int32_t dayOfWeek, 31 : fMonth(month), fDayOfMonth(0), fDayOfWeek(dayOfWeek), fWeekInMonth(weekInMonth), fMillisInDay(millisInDay), 37 int32_t dayOfWeek, 42 fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(dayOfWeek), fWeekInMonth(0), fMillisInDay(millisInDay),
|
simpletz.cpp | 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; [all...] |
olsontz.h | 167 int32_t day, uint8_t dayOfWeek, 174 int32_t day, uint8_t dayOfWeek,
|
vtzone.cpp | 537 int32_t month, dayOfWeek, nthDayOfWeek, dayOfMonth = 0; 542 parseRRULE(rrule, month, dayOfWeek, nthDayOfWeek, days, daysCount, until, status); 551 if (daysCount != 7 || month == -1 || dayOfWeek == 0) { 588 if (month == -1 || dayOfWeek == 0 || daysCount == 0) { 637 if (tmp_dayOfWeek != dayOfWeek) { 687 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { 701 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { 704 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { 706 adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, startMID, DateTimeRule::WALL_TIME); 707 } else if (dayOfWeek != 0 && nthDayOfWeek == 0 && dayOfMonth != 0) [all...] |
/external/chromium/third_party/icu/source/test/intltest/ |
calcasts.h | 33 int32_t dayOfWeek;
|
/external/icu4c/i18n/ |
dtrule.cpp | 28 int32_t dayOfWeek, 31 : fMonth(month), fDayOfMonth(0), fDayOfWeek(dayOfWeek), fWeekInMonth(weekInMonth), fMillisInDay(millisInDay), 37 int32_t dayOfWeek, 42 fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(dayOfWeek), fWeekInMonth(0), fMillisInDay(millisInDay),
|
simpletz.cpp | 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; [all...] |
vzone.cpp | 116 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) { 117 return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, status); 122 uint8_t dayOfWeek, int32_t millis, 124 return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, monthLength, status);
|
olsontz.h | 164 int32_t day, uint8_t dayOfWeek, 171 int32_t day, uint8_t dayOfWeek,
|
vtzone.cpp | 537 int32_t month, dayOfWeek, nthDayOfWeek, dayOfMonth = 0; 542 parseRRULE(rrule, month, dayOfWeek, nthDayOfWeek, days, daysCount, until, status); 551 if (daysCount != 7 || month == -1 || dayOfWeek == 0) { 588 if (month == -1 || dayOfWeek == 0 || daysCount == 0) { 637 if (tmp_dayOfWeek != dayOfWeek) { 687 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { 701 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { 704 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { 706 adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, startMID, DateTimeRule::WALL_TIME); 707 } else if (dayOfWeek != 0 && nthDayOfWeek == 0 && dayOfMonth != 0) [all...] |
/external/icu4c/test/intltest/ |
calcasts.h | 33 int32_t dayOfWeek;
|