Home
last modified time | relevance | path

Searched refs:dayOfYear (Results 1 – 18 of 18) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticChronology.java178 public CopticDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument
179 return new CopticDate(prolepticYear, (dayOfYear - 1) / 30 + 1, (dayOfYear - 1) % 30 + 1); in dateYearDay()
/libcore/ojluni/src/main/java/java/time/chrono/
DHijrahChronology.java468 public HijrahDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument
469 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay()
483 public HijrahDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument
485 if (dayOfYear > date.lengthOfYear()) { in dateYearDay()
486 throw new DateTimeException("Invalid dayOfYear: " + dayOfYear); in dateYearDay()
488 return date.plusDays(dayOfYear - 1); in dateYearDay()
622 void checkValidDayOfYear(int dayOfYear) { in checkValidDayOfYear() argument
623 if (dayOfYear < 1 || dayOfYear > getMaximumDayOfYear()) { in checkValidDayOfYear()
624 throw new DateTimeException("Invalid Hijrah day of year: " + dayOfYear); in checkValidDayOfYear()
DMinguoChronology.java207 public MinguoDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument
208 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay()
221 public MinguoDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument
222 return new MinguoDate(LocalDate.ofYearDay(prolepticYear + YEARS_DIFFERENCE, dayOfYear)); in dateYearDay()
DThaiBuddhistChronology.java243 public ThaiBuddhistDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument
244 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay()
257 public ThaiBuddhistDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument
258 … return new ThaiBuddhistDate(LocalDate.ofYearDay(prolepticYear - YEARS_DIFFERENCE, dayOfYear)); in dateYearDay()
DChronology.java342 default ChronoLocalDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument
343 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay()
355 ChronoLocalDate dateYearDay(int prolepticYear, int dayOfYear); in dateYearDay() argument
DIsoChronology.java218 public LocalDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument
219 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay()
233 public LocalDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument
234 return LocalDate.ofYearDay(prolepticYear, dayOfYear); in dateYearDay()
DJapaneseChronology.java259 public JapaneseDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument
260 return JapaneseDate.ofYearDay((JapaneseEra) era, yearOfEra, dayOfYear); in dateYearDay()
277 public JapaneseDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument
278 return new JapaneseDate(LocalDate.ofYearDay(prolepticYear, dayOfYear)); in dateYearDay()
DJapaneseDate.java277 static JapaneseDate ofYearDay(JapaneseEra era, int yearOfEra, int dayOfYear) { in ofYearDay() argument
283 jdate.setDate(yearOfEra, firstDay.getMonth(), firstDay.getDayOfMonth() + dayOfYear - 1); in ofYearDay()
285 jdate.setDate(yearOfEra, 1, dayOfYear); in ofYearDay()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestJapaneseChronology.java214 …public void test_firstDayOfEra(JapaneseEra era, int yearOfEra, int dayOfYear, int month, int dayOf… in test_firstDayOfEra() argument
215 JapaneseDate date1 = JAPANESE.dateYearDay(era, yearOfEra, dayOfYear); in test_firstDayOfEra()
233 public void test_invalidDayYear(JapaneseEra era, int yearOfEra, int dayOfYear) { in test_invalidDayYear() argument
234 JapaneseDate date = JAPANESE.dateYearDay(era, yearOfEra, dayOfYear); in test_invalidDayYear()
235 …out.printf("No DateTimeException with era=%s, year=%d, dayOfYear=%d%n", era, yearOfEra, dayOfYear); in test_invalidDayYear()
/libcore/ojluni/src/main/java/java/time/
DLocalDate.java279 public static LocalDate ofYearDay(int year, int dayOfYear) { in ofYearDay() argument
281 DAY_OF_YEAR.checkValidValue(dayOfYear); in ofYearDay()
283 if (dayOfYear == 366 && leap == false) { in ofYearDay()
286 Month moy = Month.of((dayOfYear - 1) / 31 + 1); in ofYearDay()
288 if (dayOfYear > monthEnd) { in ofYearDay()
291 int dom = dayOfYear - moy.firstDayOfYear(leap) + 1; in ofYearDay()
1108 public LocalDate withDayOfYear(int dayOfYear) { in withDayOfYear() argument
1109 if (this.getDayOfYear() == dayOfYear) { in withDayOfYear()
1112 return ofYearDay(year, dayOfYear); in withDayOfYear()
DYear.java950 public LocalDate atDay(int dayOfYear) { in atDay() argument
951 return LocalDate.ofYearDay(year, dayOfYear); in atDay()
DOffsetDateTime.java1038 public OffsetDateTime withDayOfYear(int dayOfYear) { in withDayOfYear() argument
1039 return with(dateTime.withDayOfYear(dayOfYear), offset); in withDayOfYear()
DZonedDateTime.java1397 public ZonedDateTime withDayOfYear(int dayOfYear) { in withDayOfYear() argument
1398 return resolveLocal(dateTime.withDayOfYear(dayOfYear)); in withDayOfYear()
DLocalDateTime.java1032 public LocalDateTime withDayOfYear(int dayOfYear) { in withDayOfYear() argument
1033 return with(date.withDayOfYear(dayOfYear), time); in withDayOfYear()
/libcore/ojluni/src/main/java/java/util/
DJapaneseImperialCalendar.java266 int dayOfYear = Integer.MAX_VALUE;
274 dayOfYear = Math.min((int)(fd - fdd) + 1, dayOfYear);
279 dayOfYear = Math.min((int)(fdd - fd) + 1, dayOfYear);
293 LEAST_MAX_VALUES[DAY_OF_YEAR] = dayOfYear;
1700 int dayOfYear; in computeFields() local
1704 dayOfYear = (int)(fixedDate - fixedDateJan1) + 1; in computeFields()
1708 dayOfYear = (int)(fixedDate - fixedDateJan1) + 1; in computeFields()
1710 dayOfYear = (int) jcal.getDayOfYear(jdate); in computeFields()
1711 fixedDateJan1 = fixedDate - dayOfYear + 1; in computeFields()
1716 internalSet(DAY_OF_YEAR, dayOfYear); in computeFields()
DGregorianCalendar.java2109 int dayOfYear = internalGet(DAY_OF_YEAR); in getWeekYear() local
2115 if (dayOfYear > minimalDays && dayOfYear < (maxDayOfYear - 6)) { in getWeekYear()
2138 if (dayOfYear < minDayOfYear) { in getWeekYear()
2158 int days = maxDayOfYear - dayOfYear + 1; in getWeekYear()
2485 int dayOfYear = (int)(fixedDate - fixedDateJan1) + 1; in computeFields() local
2504 cutoverGap = dayOfYear - realDayOfYear; in computeFields()
2505 dayOfYear = realDayOfYear; in computeFields()
2508 internalSet(DAY_OF_YEAR, dayOfYear); in computeFields()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronologyTest.java100 public ChronoLocalDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java249 public java.time.OffsetDateTime withDayOfYear(int dayOfYear) { in withDayOfYear() argument