Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/time/chrono/
DHijrahDate.java136 private final transient int dayOfMonth; field in HijrahDate
149 …static HijrahDate of(HijrahChronology chrono, int prolepticYear, int monthOfYear, int dayOfMonth) { in of() argument
150 return new HijrahDate(chrono, prolepticYear, monthOfYear, dayOfMonth); in of()
227 public static HijrahDate of(int prolepticYear, int month, int dayOfMonth) { in of() argument
228 return HijrahChronology.INSTANCE.date(prolepticYear, month, dayOfMonth); in of()
262 … private HijrahDate(HijrahChronology chrono, int prolepticYear, int monthOfYear, int dayOfMonth) { in HijrahDate() argument
264 chrono.getEpochDay(prolepticYear, monthOfYear, dayOfMonth); in HijrahDate()
269 this.dayOfMonth = dayOfMonth; in HijrahDate()
283 this.dayOfMonth = dateInfo[2]; in HijrahDate()
367 case DAY_OF_MONTH: return this.dayOfMonth; in getLong()
[all …]
DMinguoChronology.java176 public MinguoDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() argument
177 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date()
191 public MinguoDate date(int prolepticYear, int month, int dayOfMonth) { in date() argument
192 return new MinguoDate(LocalDate.of(prolepticYear + YEARS_DIFFERENCE, month, dayOfMonth)); in date()
DThaiBuddhistChronology.java212 public ThaiBuddhistDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() argument
213 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date()
227 public ThaiBuddhistDate date(int prolepticYear, int month, int dayOfMonth) { in date() argument
228 … return new ThaiBuddhistDate(LocalDate.of(prolepticYear - YEARS_DIFFERENCE, month, dayOfMonth)); in date()
DHijrahChronology.java437 public HijrahDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() argument
438 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date()
452 public HijrahDate date(int prolepticYear, int month, int dayOfMonth) { in date() argument
453 return HijrahDate.of(this, prolepticYear, month, dayOfMonth); in date()
669 long getEpochDay(int prolepticYear, int monthOfYear, int dayOfMonth) { in getEpochDay() argument
677 if (dayOfMonth < 1 || dayOfMonth > getMonthLength(prolepticYear, monthOfYear)) { in getEpochDay()
678 throw new DateTimeException("Invalid Hijrah day of month: " + dayOfMonth); in getEpochDay()
680 return epochMonthToEpochDay(epochMonth) + (dayOfMonth - 1); in getEpochDay()
DJapaneseDate.java220 public static JapaneseDate of(JapaneseEra era, int yearOfEra, int month, int dayOfMonth) { in of() argument
223 jdate.setEra(era.getPrivateEra()).setDate(yearOfEra, month, dayOfMonth); in of()
227 LocalDate date = LocalDate.of(jdate.getNormalizedYear(), month, dayOfMonth); in of()
248 public static JapaneseDate of(int prolepticYear, int month, int dayOfMonth) { in of() argument
249 return new JapaneseDate(LocalDate.of(prolepticYear, month, dayOfMonth)); in of()
754 int dayOfMonth = in.readByte(); in readExternal() local
755 return JapaneseChronology.INSTANCE.date(year, month, dayOfMonth); in readExternal()
DChronology.java311 default ChronoLocalDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() argument
312 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date()
325 ChronoLocalDate date(int prolepticYear, int month, int dayOfMonth); in date() argument
DThaiBuddhistDate.java175 public static ThaiBuddhistDate of(int prolepticYear, int month, int dayOfMonth) { in of() argument
176 … return new ThaiBuddhistDate(LocalDate.of(prolepticYear - YEARS_DIFFERENCE, month, dayOfMonth)); in of()
509 int dayOfMonth = in.readByte(); in readExternal() local
510 return ThaiBuddhistChronology.INSTANCE.date(year, month, dayOfMonth); in readExternal()
DMinguoDate.java175 public static MinguoDate of(int prolepticYear, int month, int dayOfMonth) { in of() argument
176 return new MinguoDate(LocalDate.of(prolepticYear + YEARS_DIFFERENCE, month, dayOfMonth)); in of()
509 int dayOfMonth = in.readByte(); in readExternal() local
510 return MinguoChronology.INSTANCE.date(year, month, dayOfMonth); in readExternal()
DIsoChronology.java187 public LocalDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() argument
188 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date()
204 public LocalDate date(int prolepticYear, int month, int dayOfMonth) { in date() argument
205 return LocalDate.of(prolepticYear, month, dayOfMonth); in date()
DJapaneseChronology.java211 public JapaneseDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() argument
215 return JapaneseDate.of((JapaneseEra) era, yearOfEra, month, dayOfMonth); in date()
232 public JapaneseDate date(int prolepticYear, int month, int dayOfMonth) { in date() argument
233 return new JapaneseDate(LocalDate.of(prolepticYear, month, dayOfMonth)); in date()
/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 …]
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/time/
DMonthDay.java211 public static MonthDay of(Month month, int dayOfMonth) { in of() argument
213 DAY_OF_MONTH.checkValidValue(dayOfMonth); in of()
214 if (dayOfMonth > month.maxLength()) { in of()
215 throw new DateTimeException("Illegal value for DayOfMonth field, value " + dayOfMonth + in of()
218 return new MonthDay(month.getValue(), dayOfMonth); in of()
237 public static MonthDay of(int month, int dayOfMonth) { in of() argument
238 return of(Month.of(month), dayOfMonth); in of()
313 private MonthDay(int month, int dayOfMonth) { in MonthDay() argument
315 this.day = dayOfMonth; in MonthDay()
558 public MonthDay withDayOfMonth(int dayOfMonth) { in withDayOfMonth() argument
[all …]
DLocalDate.java239 public static LocalDate of(int year, Month month, int dayOfMonth) { in of() argument
242 DAY_OF_MONTH.checkValidValue(dayOfMonth); in of()
243 return create(year, month.getValue(), dayOfMonth); in of()
259 public static LocalDate of(int year, int month, int dayOfMonth) { in of() argument
262 DAY_OF_MONTH.checkValidValue(dayOfMonth); in of()
263 return create(year, month, dayOfMonth); in of()
407 private static LocalDate create(int year, int month, int dayOfMonth) { in create() argument
408 if (dayOfMonth > 28) { in create()
421 if (dayOfMonth > dom) { in create()
422 if (dayOfMonth == 29) { in create()
[all …]
DLocalDateTime.java229 public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute) { in of() argument
230 LocalDate date = LocalDate.of(year, month, dayOfMonth); in of()
254 …public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute, int se… in of() argument
255 LocalDate date = LocalDate.of(year, month, dayOfMonth); in of()
279 …public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute, int se… in of() argument
280 LocalDate date = LocalDate.of(year, month, dayOfMonth); in of()
304 public static LocalDateTime of(int year, int month, int dayOfMonth, int hour, int minute) { in of() argument
305 LocalDate date = LocalDate.of(year, month, dayOfMonth); in of()
329 …public static LocalDateTime of(int year, int month, int dayOfMonth, int hour, int minute, int seco… in of() argument
330 LocalDate date = LocalDate.of(year, month, dayOfMonth); in of()
[all …]
DYearMonth.java572 public boolean isValidDay(int dayOfMonth) { in isValidDay() argument
573 return dayOfMonth >= 1 && dayOfMonth <= lengthOfMonth(); in isValidDay()
1088 public LocalDate atDay(int dayOfMonth) { in atDay() argument
1089 return LocalDate.of(year, month, dayOfMonth); in atDay()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DBaseCalendar.java67 final long getDayOfYear(int year, int month, int dayOfMonth) { in getDayOfYear() argument
76 int year, int month, int dayOfMonth, sun.util.calendar.BaseCalendar.Date cache) { in getFixedDate() argument
184 int normalizedYear, int month, int dayOfMonth) { in setNormalizedDate() argument
DCalendarDate.java158 public sun.util.calendar.CalendarDate setDate(int year, int month, int dayOfMonth) { in setDate() argument
162 public sun.util.calendar.CalendarDate addDate(int year, int month, int dayOfMonth) { in addDate() argument
256 private int dayOfMonth; field in CalendarDate
DImmutableGregorianDate.java143 public sun.util.calendar.CalendarDate setDate(int year, int month, int dayOfMonth) { in setDate() argument
147 public sun.util.calendar.CalendarDate addDate(int year, int month, int dayOfMonth) { in addDate() argument
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticChronology.java173 public CopticDate date(int prolepticYear, int month, int dayOfMonth) { in date() argument
174 return new CopticDate(prolepticYear, month, dayOfMonth); in date()
DCopticDate.java148 CopticDate(int prolepticYear, int month, int dayOfMonth) { in CopticDate() argument
156 range.checkValidValue(dayOfMonth, DAY_OF_MONTH); in CopticDate()
160 this.day = (short) dayOfMonth; in CopticDate()
/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.java640 public GregorianCalendar(int year, int month, int dayOfMonth) { in GregorianCalendar() argument
641 this(year, month, dayOfMonth, 0, 0, 0, 0); in GregorianCalendar()
657 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, in GregorianCalendar() argument
659 this(year, month, dayOfMonth, hourOfDay, minute, 0, 0); in GregorianCalendar()
677 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, in GregorianCalendar() argument
679 this(year, month, dayOfMonth, hourOfDay, minute, second, 0); in GregorianCalendar()
698 GregorianCalendar(int year, int month, int dayOfMonth, in GregorianCalendar() argument
704 this.set(DAY_OF_MONTH, dayOfMonth); in GregorianCalendar()
1400 int dayOfMonth; in roll() local
1405 dayOfMonth = d.getDayOfMonth(); in roll()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/
DTestIsoChronology.java187 int dayOfMonth = 5; in test_date_withEra() local
188 LocalDate test = IsoChronology.INSTANCE.date(IsoEra.BCE, year, month, dayOfMonth); in test_date_withEra()
192 assertEquals(test.get(ChronoField.DAY_OF_MONTH), dayOfMonth); in test_date_withEra() local

12