HomeSort by relevance Sort by last modified time
    Searched refs:dayOfWeek (Results 1 - 25 of 61) sorted by null

1 2 3

  /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...]
TimeZone.java 280 int dayOfWeek, int timeOfDayMillis);
  /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...]
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 397 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday)
404 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const = 0;
419 * @param dayOfWeek the day-of-week of the given date.
427 uint8_t dayOfWeek, int32_t milliseconds,
    [all...]
  /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 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 167 int32_t day, uint8_t dayOfWeek,
174 int32_t day, uint8_t dayOfWeek,
vtzone.cpp 538 int32_t month, dayOfWeek, nthDayOfWeek, dayOfMonth = 0;
543 parseRRULE(rrule, month, dayOfWeek, nthDayOfWeek, days, daysCount, until, status);
552 if (daysCount != 7 || month == -1 || dayOfWeek == 0) {
589 if (month == -1 || dayOfWeek == 0 || daysCount == 0) {
638 if (tmp_dayOfWeek != dayOfWeek) {
688 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) {
702 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) {
705 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) {
707 adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, startMID, DateTimeRule::WALL_TIME);
708 } else if (dayOfWeek != 0 && nthDayOfWeek == 0 && dayOfMonth != 0)
    [all...]
vzone.h 182 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday)
189 uint8_t dayOfWeek, int32_t millis, UErrorCode& status);
204 * @param dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday)
212 uint8_t dayOfWeek, int32_t millis,
calendar.cpp     [all...]
gregoimp.h 214 static int32_t dayOfWeek(double day);
ucal.cpp 584 ucal_getDayOfWeekType(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode* status)
589 return ((Calendar*)cal)->getDayOfWeekType(dayOfWeek, *status);
593 ucal_getWeekendTransition(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode *status)
598 return ((Calendar*)cal)->getWeekendTransition(dayOfWeek, *status);
  /external/icu4c/test/intltest/
calcasts.h 33 int32_t dayOfWeek;
tzregts.cpp 473 int32_t dayOfWeek = cal->get(UCAL_DAY_OF_WEEK, status);
481 int32_t offset = tz->getOffset((uint8_t)era, year, month, day, (uint8_t)dayOfWeek, millis, status);
626 int32_t dayOfWeek = DATA[i+3];
633 zone->setStartRule(month, day, dayOfWeek, time, status);
639 ", dayOfWeek=" + dayOfWeek + ", time=" + time +
647 zone->setEndRule(month, day, dayOfWeek, time, status);
653 ", dayOfWeek=" + dayOfWeek + ", time=" + time +
663 (int8_t)month, (int8_t)day, (int8_t)dayOfWeek, time
    [all...]
  /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;
  /packages/apps/DeskClock/src/com/android/deskclock/worldclock/
WorldClockAdapter.java 234 TextView dayOfWeek = (TextView)(nameLayout.findViewById(R.id.city_day));
260 dayOfWeek.setText(mContext.getString(R.string.world_day_of_week_label,
262 dayOfWeek.setVisibility(View.VISIBLE);
264 dayOfWeek.setVisibility(View.GONE);
  /packages/apps/Calendar/src/com/android/calendar/widget/
CalendarAppWidgetProvider.java 137 final String dayOfWeek = DateUtils.getDayOfWeekString(time.weekDay + 1,
142 views.setTextViewText(R.id.day_of_week, dayOfWeek);
  /libcore/luni/src/test/java/libcore/java/util/
OldTimeZoneTest.java 31 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) {

Completed in 319 milliseconds

1 2 3