Home
last modified time | relevance | path

Searched refs:lengthOfYear (Results 1 – 14 of 14) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKHijrahChronology.java157 int lengthOfYear = HijrahChronology.INSTANCE.dateYearDay(year, 1).lengthOfYear(); in test_ofYearDayTooLarge() local
158 HijrahDate hd = HijrahChronology.INSTANCE.dateYearDay(year, lengthOfYear + 1); in test_ofYearDayTooLarge()
300 final int lastDayInYear = dateYearDay(year, 1).lengthOfYear(); in data_resolve_ymd()
301 final int lastDayInYearP1 = dateYearDay(yearP1, 1).lengthOfYear(); in data_resolve_ymd()
302 final int lastDayInYearM1 = dateYearDay(yearM1, 1).lengthOfYear(); in data_resolve_ymd()
303 final int lastDayInYearM2 = dateYearDay(yearM2, 1).lengthOfYear(); in data_resolve_ymd()
444 final int lastDayInYear = dateYearDay(year, 1).lengthOfYear(); in data_resolve_yd()
445 final int lastDayInYearP1 = dateYearDay(yearP1, 1).lengthOfYear(); in data_resolve_yd()
446 final int lastDayInYearM1 = dateYearDay(yearM1, 1).lengthOfYear(); in data_resolve_yd()
447 final int lastDayInYearM2 = dateYearDay(yearM2, 1).lengthOfYear(); in data_resolve_yd()
DCopticDate.java197 case DAY_OF_YEAR: return ValueRange.of(1, lengthOfYear()); in range()
DTCKJapaneseChronology.java665 …assertEquals(range.getMaximum(), hd1.lengthOfYear(), "lengthOfYear should match range.getMaximum()… in test_getDayOfYear()
667 for (int i = 1; i <= hd1.lengthOfYear(); i++) { in test_getDayOfYear()
678 for (int i = 1; i <= hd.lengthOfYear(); i++) { in test_withDayOfYear()
/libcore/ojluni/src/main/java/java/time/chrono/
DHijrahDate.java336 public int lengthOfYear() { in lengthOfYear() method in HijrahDate
348 case DAY_OF_YEAR: return ValueRange.of(1, lengthOfYear()); in range()
399 … case DAY_OF_YEAR: return plusDays(Math.min(nvalue, lengthOfYear()) - getDayOfYear()); in with()
DJapaneseDate.java390 public int lengthOfYear() { in lengthOfYear() method in JapaneseDate
449 case DAY_OF_YEAR: return ValueRange.of(1, lengthOfYear()); in range()
DChronoLocalDate.java359 default int lengthOfYear() { in lengthOfYear() method
DHijrahChronology.java485 if (dayOfYear > date.lengthOfYear()) { in dateYearDay()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestUmmAlQuraChronology.java252 for (int i = 1; i <= hd1.lengthOfYear(); i++) { in test_getDayOfYear()
262 for (int i = 1; i <= hd.lengthOfYear(); i++) { in test_withDayOfYear()
278 HijrahDate hd2 = hd.with(DAY_OF_YEAR, hd.lengthOfYear() + 1); in test_withDayOfYearTooLarge()
/libcore/ojluni/src/main/java/java/time/
DLocalDate.java574 case DAY_OF_YEAR: return ValueRange.of(1, lengthOfYear()); in range()
858 public int lengthOfYear() { in lengthOfYear() method in LocalDate
DYearMonth.java595 public int lengthOfYear() { in lengthOfYear() method in YearMonth
/libcore/ojluni/src/main/java/java/time/temporal/
DWeekFields.java730 int yearLen = date.lengthOfYear(); in ofWeekBasedYear()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKYearMonth.java1126 assertEquals(YearMonth.of(2007, 6).lengthOfYear(), 365); in test_lengthOfYear()
1127 assertEquals(YearMonth.of(2008, 6).lengthOfYear(), 366); in test_lengthOfYear()
DTCKLocalDate.java833 assertEquals(LocalDate.of(2007, 1, 1).lengthOfYear(), 365);
834 assertEquals(LocalDate.of(2008, 1, 1).lengthOfYear(), 366);
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java289 last = day.with(DAY_OF_YEAR, day.lengthOfYear()); in test_fieldRanges()