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.java179 public CopticDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument
180 return new CopticDate(prolepticYear, (dayOfYear - 1) / 30 + 1, (dayOfYear - 1) % 30 + 1); in dateYearDay()
/libcore/ojluni/src/main/java/java/time/chrono/
DHijrahChronology.java414 public HijrahDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument
415 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay()
429 public HijrahDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument
431 if (dayOfYear > date.lengthOfYear()) { in dateYearDay()
432 throw new DateTimeException("Invalid dayOfYear: " + dayOfYear); in dateYearDay()
434 return date.plusDays(dayOfYear - 1); in dateYearDay()
578 void checkValidDayOfYear(int dayOfYear) { in checkValidDayOfYear() argument
579 if (dayOfYear < 1 || dayOfYear > getMaximumDayOfYear()) { in checkValidDayOfYear()
580 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.java347 default ChronoLocalDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument
348 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay()
360 ChronoLocalDate dateYearDay(int prolepticYear, int dayOfYear); in dateYearDay() argument
DIsoChronology.java224 public LocalDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument
225 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay()
239 public LocalDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument
240 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.java278 static JapaneseDate ofYearDay(JapaneseEra era, int yearOfEra, int dayOfYear) { in ofYearDay() argument
284 jdate.setDate(yearOfEra, firstDay.getMonth(), firstDay.getDayOfMonth() + dayOfYear - 1); in ofYearDay()
286 jdate.setDate(yearOfEra, 1, dayOfYear); in ofYearDay()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestJapaneseChronology.java198 …public void test_firstDayOfEra(JapaneseEra era, int yearOfEra, int dayOfYear, int month, int dayOf… in test_firstDayOfEra() argument
199 JapaneseDate date1 = JAPANESE.dateYearDay(era, yearOfEra, dayOfYear); in test_firstDayOfEra()
217 public void test_invalidDayYear(JapaneseEra era, int yearOfEra, int dayOfYear) { in test_invalidDayYear() argument
218 JapaneseDate date = JAPANESE.dateYearDay(era, yearOfEra, dayOfYear); in test_invalidDayYear()
219 …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.java284 public static LocalDate ofYearDay(int year, int dayOfYear) { in ofYearDay() argument
286 DAY_OF_YEAR.checkValidValue(dayOfYear); in ofYearDay()
288 if (dayOfYear == 366 && leap == false) { in ofYearDay()
291 Month moy = Month.of((dayOfYear - 1) / 31 + 1); in ofYearDay()
293 if (dayOfYear > monthEnd) { in ofYearDay()
296 int dom = dayOfYear - moy.firstDayOfYear(leap) + 1; in ofYearDay()
1136 public LocalDate withDayOfYear(int dayOfYear) { in withDayOfYear() argument
1137 if (this.getDayOfYear() == dayOfYear) { in withDayOfYear()
1140 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.java1396 public ZonedDateTime withDayOfYear(int dayOfYear) { in withDayOfYear() argument
1397 return resolveLocal(dateTime.withDayOfYear(dayOfYear)); in withDayOfYear()
DLocalDateTime.java1028 public LocalDateTime withDayOfYear(int dayOfYear) { in withDayOfYear() argument
1029 return with(date.withDayOfYear(dayOfYear), time); in withDayOfYear()
/libcore/ojluni/src/main/java/java/util/
DJapaneseImperialCalendar.java265 int dayOfYear = Integer.MAX_VALUE;
273 dayOfYear = Math.min((int)(fd - fdd) + 1, dayOfYear);
278 dayOfYear = Math.min((int)(fdd - fd) + 1, dayOfYear);
292 LEAST_MAX_VALUES[DAY_OF_YEAR] = dayOfYear;
1665 int dayOfYear;
1669 dayOfYear = (int)(fixedDate - fixedDateJan1) + 1;
1673 dayOfYear = (int)(fixedDate - fixedDateJan1) + 1;
1675 dayOfYear = (int) jcal.getDayOfYear(jdate);
1676 fixedDateJan1 = fixedDate - dayOfYear + 1;
1681 internalSet(DAY_OF_YEAR, dayOfYear);
DGregorianCalendar.java2070 int dayOfYear = internalGet(DAY_OF_YEAR); in getWeekYear() local
2076 if (dayOfYear > minimalDays && dayOfYear < (maxDayOfYear - 6)) { in getWeekYear()
2099 if (dayOfYear < minDayOfYear) { in getWeekYear()
2119 int days = maxDayOfYear - dayOfYear + 1; in getWeekYear()
2446 int dayOfYear = (int)(fixedDate - fixedDateJan1) + 1; in computeFields() local
2465 cutoverGap = dayOfYear - realDayOfYear; in computeFields()
2466 dayOfYear = realDayOfYear; in computeFields()
2469 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