Searched refs:dayOfWeek (Results 1 – 6 of 6) sorted by relevance
/libcore/luni/src/main/java/java/util/ |
D | Grego.java | 107 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()
|
D | SimpleTimeZone.java | 342 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 …]
|
D | GregorianCalendar.java | 738 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 …]
|
D | TimeZone.java | 320 int dayOfWeek, int timeOfDayMillis); in getOffset() argument
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldTimeZoneTest.java | 30 … 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/ |
D | ZoneInfo.java | 183 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) { in getOffset() argument
|