/libcore/luni/src/main/java/java/util/ |
D | Grego.java | 107 public static int dayOfWeek(long day) { in dayOfWeek() argument 109 floorDivide(day + Calendar.THURSDAY, 7, remainder); in dayOfWeek() 115 public static int[] dayToFields(long day, int[] fields) { in dayToFields() argument 120 day += JULIAN_1970_CE - JULIAN_1_CE; in dayToFields() 123 long n400 = floorDivide(day, 146097, rem); in dayToFields() 145 int dayOfWeek = (int)((day + 2) % 7); // day 0 is Monday(2) in dayToFields() 175 long day = floorDivide(time, 24*60*60*1000 /* milliseconds per day */, remainder); in timeToFields() local 176 dayToFields(day, fields); in timeToFields()
|
D | SimpleTimeZone.java | 342 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int time) { in getOffset() argument 347 if (month != Calendar.FEBRUARY || day != 29 || !isLeapYear(year)) { in getOffset() 348 checkDay(month, day); in getOffset() 364 int ruleDay = 0, daysInMonth, firstDayOfMonth = mod7(dayOfWeek - day); in getOffset() 401 if (ruleDay > day || ruleDay == day && time < startTime) { in getOffset() 461 if (ruleDay < day || ruleDay == day && time >= ruleTime) { in getOffset() 567 private void checkDay(int month, int day) { in checkDay() argument 568 if (day <= 0 || day > GregorianCalendar.DaysInMonth[month]) { in checkDay() 569 throw new IllegalArgumentException("Invalid day of month: " + day); in checkDay() 639 public void setEndRule(int month, int day, int dayOfWeek, int time) { in setEndRule() argument [all …]
|
D | GregorianCalendar.java | 245 public GregorianCalendar(int year, int month, int day) { in GregorianCalendar() argument 247 set(year, month, day); in GregorianCalendar() 265 public GregorianCalendar(int year, int month, int day, int hour, int minute) { in GregorianCalendar() argument 267 set(year, month, day, hour, minute); in GregorianCalendar() 287 public GregorianCalendar(int year, int month, int day, int hour, in GregorianCalendar() argument 290 set(year, month, day, hour, minute, second); in GregorianCalendar() 1119 int days, day, mod, maxWeeks, newWeek; in roll() local 1127 day = DAY_OF_YEAR; in roll() 1128 mod = mod7(fields[DAY_OF_WEEK] - fields[day] in roll() 1134 if (fields[day] > addDays && fields[day] + addDays > days) { in roll() [all …]
|
D | Date.java | 76 public Date(int year, int month, int day) { in Date() argument 78 cal.set(1900 + year, month, day); in Date() 101 public Date(int year, int month, int day, int hour, int minute) { in Date() argument 103 cal.set(1900 + year, month, day, hour, minute); in Date() 128 public Date(int year, int month, int day, int hour, int minute, int second) { in Date() argument 130 cal.set(1900 + year, month, day, hour, minute, second); in Date() 575 public void setDate(int day) { in setDate() argument 577 cal.set(Calendar.DATE, day); in setDate() 758 public static long UTC(int year, int month, int day, int hour, int minute, in UTC() argument 762 cal.set(1900 + year, month, day, hour, minute, second); in UTC()
|
D | Calendar.java | 1129 public final void set(int year, int month, int day) { in set() argument 1132 set(DATE, day); in set() 1140 public final void set(int year, int month, int day, int hourOfDay, int minute) { in set() argument 1141 set(year, month, day); in set() 1151 public final void set(int year, int month, int day, int hourOfDay, int minute, int second) { in set() argument 1152 set(year, month, day, hourOfDay, minute); in set()
|
D | TimeZone.java | 279 public abstract int getOffset(int era, int year, int month, int day, in getOffset() argument
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | DatatypeFactory.java | 468 final BigInteger day, in newDurationDayTime() argument 477 day, in newDurationDayTime() 510 final int day, in newDurationDayTime() argument 516 day, hour, minute, second); in newDurationDayTime() 791 final int day, in newXMLGregorianCalendar() argument 827 final int day, in newXMLGregorianCalendar() argument 854 day, in newXMLGregorianCalendar() 889 final int day, in newXMLGregorianCalendarDate() argument 895 day, in newXMLGregorianCalendarDate()
|
D | XMLGregorianCalendar.java | 295 public abstract void setDay(int day); in setDay() argument
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | CalendarTest.java | 146 private void testSetSelfConsistent(TimeZone timeZone, int year, int month, int day) { in testSetSelfConsistent() argument 151 calendar.set(year, month, day, hour, minute); in testSetSelfConsistent() 154 assertEquals(day, calendar.get(Calendar.DAY_OF_MONTH)); in testSetSelfConsistent() 196 int year, int month, int day, int hour, int minute) { in assertCalendarEquals() argument 199 assertEquals(day, calendar.get(Calendar.DATE)); in assertCalendarEquals()
|
D | OldTimeZoneTest.java | 31 … public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) { in getOffset() argument
|
/libcore/luni/src/main/java/java/sql/ |
D | Date.java | 232 int day = Integer.parseInt(dateString.substring(secondIndex + 1, in valueOf() local 234 return new Date(year - 1900, month - 1, day); in valueOf()
|
/libcore/luni/src/main/java/libcore/util/ |
D | ZoneInfo.java | 176 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) { in getOffset() argument 195 calc += (day - 1) * MILLISECONDS_PER_DAY; in getOffset()
|
/libcore/luni/src/test/java/tests/api/java/util/ |
D | CalendarTest.java | 842 for (int day = 1; day <= 7; day++) { in test_getDisplayNameIILjava_util_Locale() 843 cal.set(Calendar.DAY_OF_WEEK, day); in test_getDisplayNameIILjava_util_Locale() 844 value = symbols.getShortWeekdays()[day]; in test_getDisplayNameIILjava_util_Locale() 847 value = symbols.getWeekdays()[day]; in test_getDisplayNameIILjava_util_Locale()
|
/libcore/luni/src/main/native/ |
D | libcore_icu_ICU.cpp | 481 ScopedResourceBundle day(ures_getByKey(fields.get(), "day", NULL, &status)); in getYesterdayTodayAndTomorrow() local 485 ScopedResourceBundle relative(ures_getByKey(day.get(), "relative", NULL, &status)); in getYesterdayTodayAndTomorrow()
|