/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 | 160 * if the month, day, dayOfWeek, or time parameters are out of 209 * if the month, day, dayOfWeek, or time parameters are out of 276 * if the month, day, dayOfWeek, or time parameters are out of 342 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int time) { 346 checkRange(month, dayOfWeek, time); 364 int ruleDay = 0, daysInMonth, firstDayOfMonth = mod7(dayOfWeek - day); 555 private void checkRange(int month, int dayOfWeek, int time) { 559 if (dayOfWeek < Calendar.SUNDAY || dayOfWeek > Calendar.SATURDAY) { 560 throw new IllegalArgumentException("Invalid day of week: " + dayOfWeek); [all...] |
GregorianCalendar.java | 704 int dayOfWeek; 706 dayOfWeek = fields[DAY_OF_WEEK] - 1; 708 dayOfWeek = getFirstDayOfWeek() - 1; 714 + mod7(skew + dayOfWeek - (days - 3)) - skew; 717 days += mod7(dayOfWeek - (days - 3)) 721 + mod7(dayOfWeek 727 days += mod7(mod7(skew + dayOfWeek - (days - 3)) - skew); 738 int dayOfWeek; 740 dayOfWeek = fields[DAY_OF_WEEK] - 1; 742 dayOfWeek = getFirstDayOfWeek() - 1 [all...] |
/external/chromium_org/third_party/icu/source/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 | 206 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 213 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const; 227 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 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,
|
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/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 | 206 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 213 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const; 227 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday) 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,
|
calendar.h | [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
dtrule.cpp | 30 int32_t dayOfWeek, 33 : fMonth(month), fDayOfMonth(0), fDayOfWeek(dayOfWeek), fWeekInMonth(weekInMonth), fMillisInDay(millisInDay), 39 int32_t dayOfWeek, 44 fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(dayOfWeek), fWeekInMonth(0), fMillisInDay(millisInDay),
|
simpletz.cpp | 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; [all...] |
vzone.cpp | 118 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) { 119 return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, status); 124 uint8_t dayOfWeek, int32_t millis, 126 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 | 539 int32_t month, dayOfWeek, nthDayOfWeek, dayOfMonth = 0; 544 parseRRULE(rrule, month, dayOfWeek, nthDayOfWeek, days, daysCount, until, status); 553 if (daysCount != 7 || month == -1 || dayOfWeek == 0) { 590 if (month == -1 || dayOfWeek == 0 || daysCount == 0) { 639 if (tmp_dayOfWeek != dayOfWeek) { 689 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { 703 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { 706 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { 708 adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, startMID, DateTimeRule::WALL_TIME); 709 } else if (dayOfWeek != 0 && nthDayOfWeek == 0 && dayOfMonth != 0) [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
calcasts.h | 33 int32_t dayOfWeek;
|
/external/icu4c/i18n/ |
dtrule.cpp | 30 int32_t dayOfWeek, 33 : fMonth(month), fDayOfMonth(0), fDayOfWeek(dayOfWeek), fWeekInMonth(weekInMonth), fMillisInDay(millisInDay), 39 int32_t dayOfWeek, 44 fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(dayOfWeek), fWeekInMonth(0), fMillisInDay(millisInDay),
|
simpletz.cpp | 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; [all...] |
vzone.cpp | 118 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) { 119 return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, status); 124 uint8_t dayOfWeek, int32_t millis, 126 return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, monthLength, status);
|
/external/icu4c/test/intltest/ |
calcasts.h | 33 int32_t dayOfWeek;
|
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarViewAdapter.java | 317 String dayOfWeek = null; 321 dayOfWeek = mContext.getString(R.string.agenda_today, 325 dayOfWeek = mContext.getString(R.string.agenda_yesterday, 329 dayOfWeek = mContext.getString(R.string.agenda_tomorrow, 333 dayOfWeek = DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, 336 return dayOfWeek.toUpperCase(); 391 int dayOfWeek = t.weekDay; 392 int diff = dayOfWeek - firstDayOfWeek;
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
DateMath.h | 57 // dayOfWeek: [0, 6] 0 being Monday, day: [1, 31], month: [0, 11], year: ex: 2011, hours: [0, 23], minutes: [0, 59], seconds: [0, 59], utcOffset: [-720,720]. 58 WTF_EXPORT String makeRFC2822DateString(unsigned dayOfWeek, unsigned day, unsigned month, unsigned year, unsigned hours, unsigned minutes, unsigned seconds, int utcOffset);
|