Home
last modified time | relevance | path

Searched refs:DAY_OF_YEAR (Results 1 – 25 of 59) sorted by relevance

123

/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestJapaneseChronoImpl.java140 assertEquals(jd.get(ChronoField.DAY_OF_YEAR), cal.get(Calendar.DAY_OF_YEAR), in test_dayOfYearVsCalendar()
142 …assertEquals(jd.range(ChronoField.DAY_OF_YEAR).getMaximum(), cal.getActualMaximum(Calendar.DAY_OF_… in test_dayOfYearVsCalendar()
144 …assertEquals(jd.range(ChronoField.DAY_OF_YEAR).getMinimum(), cal.getActualMinimum(Calendar.DAY_OF_… in test_dayOfYearVsCalendar()
DTestUmmAlQuraChronology.java29 import static java.time.temporal.ChronoField.DAY_OF_YEAR;
254 int doy = hd.get(DAY_OF_YEAR); in test_getDayOfYear()
263 HijrahDate hd2 = hd.with(DAY_OF_YEAR, i); in test_withDayOfYear()
264 int doy = hd2.get(DAY_OF_YEAR); in test_withDayOfYear()
272 HijrahDate hd2 = hd.with(DAY_OF_YEAR, 0); in test_withDayOfYearTooSmall()
278 HijrahDate hd2 = hd.with(DAY_OF_YEAR, hd.lengthOfYear() + 1); in test_withDayOfYearTooLarge()
304 …assertEquals(HijrahChronology.INSTANCE.date(1320, 1, 15).with(ChronoField.DAY_OF_YEAR, 24), Hijrah… in test_adjustWithDayOfYear()
305 …assertEquals(HijrahChronology.INSTANCE.date(1421, 11, 15).with(ChronoField.DAY_OF_YEAR, 135), Hijr… in test_adjustWithDayOfYear()
306 …assertEquals(HijrahChronology.INSTANCE.date(1529, 7, 18).with(ChronoField.DAY_OF_YEAR, 64), Hijrah… in test_adjustWithDayOfYear()
307 …assertEquals(HijrahChronology.INSTANCE.date(1534, 2, 10).with(ChronoField.DAY_OF_YEAR, 354), Hijra… in test_adjustWithDayOfYear()
[all …]
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalAdjusters.java66 import static java.time.temporal.ChronoField.DAY_OF_YEAR;
230 return (temporal) -> temporal.with(DAY_OF_YEAR, 1); in firstDayOfYear()
251 return (temporal) -> temporal.with(DAY_OF_YEAR, temporal.range(DAY_OF_YEAR).getMaximum()); in lastDayOfYear()
270 return (temporal) -> temporal.with(DAY_OF_YEAR, 1).plus(1, YEARS); in firstDayOfNextYear()
DWeekFields.java70 import static java.time.temporal.ChronoField.DAY_OF_YEAR;
794 int doy = temporal.get(DAY_OF_YEAR); in localizedWeekOfYear()
808 int doy = temporal.get(DAY_OF_YEAR); in localizedWeekBasedYear()
817 ValueRange dayRange = temporal.range(DAY_OF_YEAR); in localizedWeekBasedYear()
838 int doy = temporal.get(DAY_OF_YEAR); in localizedWeekOfWeekBasedYear()
850 ValueRange dayRange = temporal.range(DAY_OF_YEAR); in localizedWeekOfWeekBasedYear()
1078 return temporal.isSupported(DAY_OF_YEAR); in isSupportedBy()
1080 return temporal.isSupported(DAY_OF_YEAR); in isSupportedBy()
1095 return rangeByWeek(temporal, DAY_OF_YEAR); in rangeRefinedBy()
1125 if (!temporal.isSupported(DAY_OF_YEAR)) { in rangeWeekOfWeekBasedYear()
[all …]
DIsoFields.java65 import static java.time.temporal.ChronoField.DAY_OF_YEAR;
305 return temporal.isSupported(DAY_OF_YEAR) && temporal.isSupported(MONTH_OF_YEAR) && in isSupportedBy()
329 int doy = temporal.get(DAY_OF_YEAR); in getFrom()
340 … return (R) temporal.with(DAY_OF_YEAR, temporal.getLong(DAY_OF_YEAR) + (newValue - curValue)); in adjustInto()
/libcore/ojluni/src/main/java/java/time/chrono/
DJapaneseChronology.java60 import static java.time.temporal.ChronoField.DAY_OF_YEAR;
415 case DAY_OF_YEAR: { in range()
418 int fieldIndex = Calendar.DAY_OF_YEAR; in range()
461 if (fieldValues.containsKey(DAY_OF_YEAR)) { in resolveYearOfEra()
510 long days = Math.subtractExact(fieldValues.remove(DAY_OF_YEAR), 1); in resolveYD()
513 … int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR); in resolveYD()
DAbstractChronology.java70 import static java.time.temporal.ChronoField.DAY_OF_YEAR;
483 if (fieldValues.containsKey(DAY_OF_YEAR)) { in resolveDate()
574 long days = Math.subtractExact(fieldValues.remove(DAY_OF_YEAR), 1); in resolveYD()
577 … int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR); in resolveYD()
DJapaneseDate.java395 return jcal.getActualMaximum(Calendar.DAY_OF_YEAR); in lengthOfYear()
449 case DAY_OF_YEAR: return ValueRange.of(1, lengthOfYear()); in range()
483 case DAY_OF_YEAR: in getLong()
488 return jcal.get(Calendar.DAY_OF_YEAR); in getLong()
DHijrahDate.java348 case DAY_OF_YEAR: return ValueRange.of(1, lengthOfYear()); in range()
368 case DAY_OF_YEAR: return this.getDayOfYear(); in getLong()
399 … case DAY_OF_YEAR: return plusDays(Math.min(nvalue, lengthOfYear()) - getDayOfYear()); in with()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java68 import static java.time.temporal.ChronoField.DAY_OF_YEAR;
129 {DAY_OF_YEAR, DAYS, YEARS}, in data_fieldUnit()
161 {DAY_OF_YEAR, true, false}, in data_fieldBased()
207 {DAY_OF_YEAR, LocalDate.of(2000, 2, 29), true, 60}, in data_fieldAndAccessor()
208 {DAY_OF_YEAR, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 60}, in data_fieldAndAccessor()
229 {DAY_OF_YEAR, LocalTime.of(5, 4, 3, 200), false, -1}, in data_fieldAndAccessor()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java197 case DAY_OF_YEAR: return ValueRange.of(1, lengthOfYear()); in range()
216 … case ALIGNED_DAY_OF_WEEK_IN_YEAR: return ((get(ChronoField.DAY_OF_YEAR) - 1) % 7) + 1; in getLong()
218 case DAY_OF_YEAR: return (month - 1) * 30 + day; in getLong()
221 case ALIGNED_WEEK_OF_YEAR: return ((get(ChronoField.DAY_OF_YEAR) - 1) / 7) + 1; in getLong()
243 …case DAY_OF_YEAR: return resolvePreviousValid(prolepticYear, ((nvalue - 1) / 30) + 1, ((nvalue - 1… in with()
331 … copticEpochDay = ((year - 1) * 365) + Math.floorDiv(year, 4) + (get(ChronoField.DAY_OF_YEAR) - 1); in toEpochDay()
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestDateTimeBuilderCombinations.java68 import static java.time.temporal.ChronoField.DAY_OF_YEAR;
97 … {YEAR, 2012, DAY_OF_YEAR, 155, null, null, null, null, LocalDate.class, LocalDate.of(2012, 6, 3)}, in data_combine()
172 {DAY_OF_YEAR, 127, DAY_OF_YEAR, 127}, in data_normalized()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DThaiBuddhistChronologyTest.java97 assertEquals(LocalDate.from(date).range(ChronoField.DAY_OF_YEAR), in test_ThaiBuddhistDate_range()
98 date.range(ChronoField.DAY_OF_YEAR)); in test_ThaiBuddhistDate_range()
121 assertEquals(31 + 5, date.getLong(ChronoField.DAY_OF_YEAR)); in test_ThaiBuddhistDate_getLong()
DMinguoChronologyTest.java97 assertEquals(LocalDate.from(date).range(ChronoField.DAY_OF_YEAR), in test_MinguoDate_range()
98 date.range(ChronoField.DAY_OF_YEAR)); in test_MinguoDate_range()
121 assertEquals(31 + 5, date.getLong(ChronoField.DAY_OF_YEAR)); in test_MinguoDate_getLong()
DHijrahChronologyTest.java51 assertEquals(30 + 5, date.getLong(ChronoField.DAY_OF_YEAR)); in test_HijrahDate_getLong()
/libcore/ojluni/src/main/java/java/util/
DGregorianCalendar.java1041 case DAY_OF_YEAR:
1433 case DAY_OF_YEAR: in roll()
1442 long jan1 = fd - internalGet(DAY_OF_YEAR) + 1; in roll()
1572 case DAY_OF_YEAR: in getMaximum()
1651 case DAY_OF_YEAR: in getLeastMaximum()
1794 case DAY_OF_YEAR: in getActualMaximum()
1848 int maxDayOfYear = getActualMaximum(DAY_OF_YEAR); in getActualMaximum()
1849 gc.set(DAY_OF_YEAR, maxDayOfYear); in getActualMaximum()
1852 gc.set(DAY_OF_YEAR, maxDayOfYear - 7); in getActualMaximum()
1998 long t = (internalGet(DAY_OF_YEAR) - 1) * 24; in getYearOffsetInMillis()
[all …]
DJapaneseImperialCalendar.java293 LEAST_MAX_VALUES[DAY_OF_YEAR] = dayOfYear;
475 case DAY_OF_YEAR: in add()
894 case DAY_OF_YEAR: in roll()
903 int value = getRolledValue(internalGet(DAY_OF_YEAR), amount, min, max); in roll()
904 long jan0 = cachedFixedDate - internalGet(DAY_OF_YEAR); in roll()
1324 case DAY_OF_YEAR: in getActualMaximum()
1415 int max = getActualMaximum(DAY_OF_YEAR); in getActualMaximum()
1416 jc.set(DAY_OF_YEAR, max); in getActualMaximum()
1716 internalSet(DAY_OF_YEAR, dayOfYear); in computeFields()
2104 if (isFieldSet(fieldMask, DAY_OF_YEAR)) { in getFixedDate()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoFieldSerialization.java68 import static java.time.temporal.ChronoField.DAY_OF_YEAR;
112 {DAY_OF_YEAR}, in data_fieldBased()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSupport_SimpleDateFormat.java86 t_FormatWithField(11, format, date, null, Field.DAY_OF_YEAR, 113, 116); in t_format_with_FieldPosition()
115 t_FormatWithField(33, format, date, null, Field.DAY_OF_YEAR, 0, 0); in t_format_with_FieldPosition()
239 v.add(new FieldContainer(113, 116, Field.DAY_OF_YEAR)); in getDateVector4()
240 v.add(new FieldContainer(117, 120, Field.DAY_OF_YEAR)); in getDateVector4()
241 v.add(new FieldContainer(121, 124, Field.DAY_OF_YEAR)); in getDateVector4()
/libcore/luni/src/test/java/libcore/java/util/
DGregorianCalendarTest.java134 assertEquals(352, gc.getActualMaximum(Calendar.DAY_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver()
135 assertEquals(352, gc.getLeastMaximum(Calendar.DAY_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver()
155 assertEquals(366, gc.getActualMaximum(Calendar.DAY_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver()
156 assertEquals(365, gc.getLeastMaximum(Calendar.DAY_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver()
/libcore/ojluni/annotations/hiddenapi/java/text/
DDateFormat.java274 public static final java.text.DateFormat.Field DAY_OF_YEAR; field in DateFormat.Field
277 DAY_OF_YEAR = null;
/libcore/ojluni/annotations/mmodule/java/text/
DDateFormat.annotated.java188 public static final java.text.DateFormat.Field DAY_OF_YEAR; field in DateFormat.Field
189 static { DAY_OF_YEAR = null; }
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java125 cal.set(Calendar.DAY_OF_YEAR, 170); in test_setII()
139 cal.set(Calendar.DAY_OF_YEAR, 170); in test_setII()
258 cal.set(Calendar.DAY_OF_YEAR, 70); in test_setII()
266 cal.set(Calendar.DAY_OF_YEAR, 170); in test_setII()
276 cal.set(Calendar.DAY_OF_YEAR, 70); in test_setII()
284 cal.set(Calendar.DAY_OF_YEAR, 70); in test_setII()
326 cal.set(Calendar.DAY_OF_YEAR, 70); in test_setII()
364 cal.set(Calendar.DAY_OF_YEAR, 111); in test_setII()
/libcore/ojluni/src/main/java/java/text/
DDateFormat.java1005 public final static Field DAY_OF_YEAR = new field in DateFormat.Field
1006 Field("day of year", Calendar.DAY_OF_YEAR);
/libcore/ojluni/src/main/java/java/time/
DLocalDate.java70 import static java.time.temporal.ChronoField.DAY_OF_YEAR;
281 DAY_OF_YEAR.checkValidValue(dayOfYear); in ofYearDay()
574 case DAY_OF_YEAR: return ValueRange.of(1, lengthOfYear()); in range()
664 case DAY_OF_YEAR: return getDayOfYear(); in get0()
1023 case DAY_OF_YEAR: return withDayOfYear((int) newValue); in with()

123