Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/util/
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()
DSimpleTimeZone.java342 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int time) { in getOffset() argument
346 checkRange(month, dayOfWeek, time); in getOffset()
364 int ruleDay = 0, daysInMonth, firstDayOfMonth = mod7(dayOfWeek - day); in getOffset()
555 private void checkRange(int month, int dayOfWeek, int time) { in checkRange() argument
559 if (dayOfWeek < Calendar.SUNDAY || dayOfWeek > Calendar.SATURDAY) { in checkRange()
560 throw new IllegalArgumentException("Invalid day of week: " + dayOfWeek); in checkRange()
639 public void setEndRule(int month, int day, int dayOfWeek, int time) { in setEndRule() argument
642 endDayOfWeek = dayOfWeek; in setEndRule()
663 public void setEndRule(int month, int day, int dayOfWeek, int time, boolean after) { in setEndRule() argument
666 endDayOfWeek = -dayOfWeek; in setEndRule()
[all …]
DGregorianCalendar.java738 int dayOfWeek; in computeTime() local
740 dayOfWeek = fields[DAY_OF_WEEK] - 1; in computeTime()
742 dayOfWeek = getFirstDayOfWeek() - 1; in computeTime()
748 + mod7(skew + dayOfWeek - (days - 3)) - skew; in computeTime()
751 days += mod7(dayOfWeek - (days - 3)) in computeTime()
755 + mod7(dayOfWeek in computeTime()
761 days += mod7(mod7(skew + dayOfWeek - (days - 3)) - skew); in computeTime()
772 int dayOfWeek; in computeTime() local
774 dayOfWeek = fields[DAY_OF_WEEK] - 1; in computeTime()
776 dayOfWeek = getFirstDayOfWeek() - 1; in computeTime()
[all …]
DTimeZone.java320 int dayOfWeek, int timeOfDayMillis); in getOffset() argument
/libcore/luni/src/test/java/libcore/java/util/
DOldTimeZoneTest.java30 … public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) { in getOffset() argument
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java183 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) { in getOffset() argument