Home
last modified time | relevance | path

Searched refs:doy (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/main/java/java/time/temporal/
DWeekFields.java794 int doy = temporal.get(DAY_OF_YEAR); in localizedWeekOfYear() local
795 int offset = startOfWeekOffset(doy, dow); in localizedWeekOfYear()
796 return computeWeek(offset, doy); in localizedWeekOfYear()
808 int doy = temporal.get(DAY_OF_YEAR); in localizedWeekBasedYear() local
809 int offset = startOfWeekOffset(doy, dow); in localizedWeekBasedYear()
810 int week = computeWeek(offset, doy); in localizedWeekBasedYear()
838 int doy = temporal.get(DAY_OF_YEAR); in localizedWeekOfWeekBasedYear() local
839 int offset = startOfWeekOffset(doy, dow); in localizedWeekOfWeekBasedYear()
840 int week = computeWeek(offset, doy); in localizedWeekOfWeekBasedYear()
845 date = date.minus(doy, DAYS); // Back down into previous year in localizedWeekOfWeekBasedYear()
[all …]
DIsoFields.java329 int doy = temporal.get(DAY_OF_YEAR); in getFrom() local
332 … return doy - QUARTER_DAYS[((moy - 1) / 3) + (IsoChronology.INSTANCE.isLeapYear(year) ? 4 : 0)]; in getFrom()
623 int doy = date.getDayOfYear(); in getWeekBasedYear() local
624 if (doy <= 3) { in getWeekBasedYear()
626 if (doy - dow < -2) { in getWeekBasedYear()
629 } else if (doy >= 363) { in getWeekBasedYear()
631 doy = doy - 363 - (date.isLeapYear() ? 1 : 0); in getWeekBasedYear()
632 if (doy - dow >= 0) { in getWeekBasedYear()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKJapaneseChronology.java198 … public void test_createEymd(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDate iso) { in test_createEymd() argument
206 public void test_createEyd(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDate iso) { in test_createEyd() argument
207 JapaneseDate dateByChronoFactory = JapaneseChronology.INSTANCE.dateYearDay(era, yoe, doy); in test_createEyd()
214 …public void test_createByEra_isEqual(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDat… in test_createByEra_isEqual() argument
221 …Era_chronologyTemporalFactory(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDate iso) { in test_createByEra_chronologyTemporalFactory() argument
228 …public void test_createByEra_dateFrom(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDa… in test_createByEra_dateFrom() argument
235 …public void test_createByEra_query(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDate … in test_createByEra_query() argument
241 …public void test_createByEra_epochDay(JapaneseEra era, int yoe, int moy, int dom, int doy, LocalDa… in test_createByEra_epochDay() argument
266 public void test_createYmd(int y, int moy, int dom, int doy, LocalDate iso) { in test_createYmd() argument
274 public void test_createYd(int y, int moy, int dom, int doy, LocalDate iso) { in test_createYd() argument
[all …]
DTCKHijrahChronology.java536 private static HijrahDate dateYearDay(int y, int doy) { in dateYearDay() argument
537 return HijrahChronology.INSTANCE.dateYearDay(y, doy); in dateYearDay()
/libcore/ojluni/src/main/java/java/time/chrono/
DJapaneseChronology.java513 … int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR); in resolveYD() local
514 return dateYearDay(era, yoe, doy); // smart is same as strict in resolveYD()
DAbstractChronology.java577 … int doy = range(DAY_OF_YEAR).checkValidIntValue(fieldValues.remove(DAY_OF_YEAR), DAY_OF_YEAR); in resolveYD() local
578 return dateYearDay(y, doy); // smart is same as strict in resolveYD()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestUmmAlQuraChronology.java254 int doy = hd.get(DAY_OF_YEAR); in test_getDayOfYear() local
255 assertEquals(doy, i, "get(DAY_OF_YEAR) incorrect for " + i); in test_getDayOfYear()
264 int doy = hd2.get(DAY_OF_YEAR); in test_withDayOfYear() local
265 assertEquals(doy, i, "with(DAY_OF_YEAR) incorrect for " + i + " " + hd2); in test_withDayOfYear()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKYear.java1116 Year doy = null;
1118 test.compareTo(doy);
1144 Year doy = null;
1146 assertEquals(test.equals(doy), false);
DTCKLocalDate.java756 int doy = total + d;
757 assertEquals(a.getDayOfYear(), doy);
DTCKLocalDateTime.java1099 int doy = total + d;
1100 assertEquals(a.getDayOfYear(), doy);