Home
last modified time | relevance | path

Searched refs:dayOfMonth (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/calendar/
DCalendarDate.java70 private int dayOfMonth; field in CalendarDate
186 return dayOfMonth; in getDayOfMonth()
190 if (dayOfMonth != date) { in setDayOfMonth()
191 dayOfMonth = date; in setDayOfMonth()
199 dayOfMonth += n; in addDayOfMonth()
305 public CalendarDate setDate(int year, int month, int dayOfMonth) { in setDate() argument
308 setDayOfMonth(dayOfMonth); in setDate()
312 public CalendarDate addDate(int year, int month, int dayOfMonth) { in addDate() argument
315 addDayOfMonth(dayOfMonth); in addDate()
403 && dayOfMonth == that.dayOfMonth in equals()
[all …]
DBaseCalendar.java152 public Date setNormalizedDate(int normalizedYear, int month, int dayOfMonth) { in setNormalizedDate() argument
154 setMonth(month).setDayOfMonth(dayOfMonth); in setNormalizedDate()
346 final long getDayOfYear(int year, int month, int dayOfMonth) { in getDayOfYear() argument
347 return (long) dayOfMonth in getDayOfYear()
364 public long getFixedDate(int year, int month, int dayOfMonth, BaseCalendar.Date cache) { in getFixedDate() argument
365 boolean isJan1 = month == JANUARY && dayOfMonth == 1; in getFixedDate()
372 return cache.getCachedJan1() + getDayOfYear(year, month, dayOfMonth) - 1; in getFixedDate()
382 return isJan1 ? jan1 : jan1 + getDayOfYear(year, month, dayOfMonth) - 1; in getFixedDate()
386 long days = dayOfMonth; in getFixedDate()
458 int dayOfMonth = (int)(fixedDate - month1) + 1; in getCalendarDateFromFixedDate() local
[all …]
DJulianCalendar.java148 public long getFixedDate(int jyear, int month, int dayOfMonth, BaseCalendar.Date cache) { in getFixedDate() argument
149 boolean isJan1 = month == JANUARY && dayOfMonth == 1; in getFixedDate()
156 return cache.getCachedJan1() + getDayOfYear(jyear, month, dayOfMonth) - 1; in getFixedDate()
160 long days = JULIAN_EPOCH - 1 + (365 * (y - 1)) + dayOfMonth; in getFixedDate()
205 int dayOfMonth = (int)(fixedDate - getFixedDate(year, month, 1, jdate)) + 1; in getCalendarDateFromFixedDate() local
210 jdate.setDayOfMonth(dayOfMonth); in getCalendarDateFromFixedDate()
DImmutableGregorianDate.java149 public CalendarDate setDate(int year, int month, int dayOfMonth) { in setDate() argument
153 public CalendarDate addDate(int year, int month, int dayOfMonth) { in addDate() argument
/libcore/ojluni/src/main/java/java/util/
DSimpleTimeZone.java746 int mode, int year, int month, int dayOfMonth, in getTransition() argument
752 cdate.setDayOfMonth(dayOfMonth); in getTransition()
757 if (dayOfMonth < 0) { in getTransition()
760 cdate = (BaseCalendar.Date) cal.getNthDayOfWeek(dayOfMonth, dayOfWeek, cdate); in getTransition()
764 cdate.setDayOfMonth(dayOfMonth); in getTransition()
769 cdate.setDayOfMonth(dayOfMonth); in getTransition()
DGregorianCalendar.java634 public GregorianCalendar(int year, int month, int dayOfMonth) { in GregorianCalendar() argument
635 this(year, month, dayOfMonth, 0, 0, 0, 0); in GregorianCalendar()
651 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, in GregorianCalendar() argument
653 this(year, month, dayOfMonth, hourOfDay, minute, 0, 0); in GregorianCalendar()
671 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, in GregorianCalendar() argument
673 this(year, month, dayOfMonth, hourOfDay, minute, second, 0); in GregorianCalendar()
692 GregorianCalendar(int year, int month, int dayOfMonth, in GregorianCalendar() argument
698 this.set(DAY_OF_MONTH, dayOfMonth); in GregorianCalendar()
1344 int dayOfMonth; in roll() local
1349 dayOfMonth = d.getDayOfMonth(); in roll()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java663 int dayOfMonth = gCalend.get(Calendar.DAY_OF_MONTH); in test_clone() local
669 assertEquals("Before", dayOfMonth, gCalend.get(Calendar.DAY_OF_MONTH)); in test_clone()
671 assertEquals("After", dayOfMonth, gCalend.get(Calendar.DAY_OF_MONTH)); in test_clone()