/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeBuilderCombinations.java | 71 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 95 …{PROLEPTIC_MONTH, 2012 * 12 + 6 - 1, DAY_OF_MONTH, 3, null, null, null, null, LocalDate.class, Loc… in data_combine() 179 {PROLEPTIC_MONTH, 27, PROLEPTIC_MONTH, null}, in data_normalized() 180 {PROLEPTIC_MONTH, 27, YEAR, 2}, in data_normalized() 181 {PROLEPTIC_MONTH, 27, MONTH_OF_YEAR, 4}, in data_normalized()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | YearMonthTest.java | 58 assertEquals(YearMonth.of(0, Month.JANUARY), ym.with(ChronoField.PROLEPTIC_MONTH, 0)); in test_with_TemporalField_long() 59 …ls(YearMonth.of(Year.MAX_VALUE, Month.DECEMBER), ym.with(ChronoField.PROLEPTIC_MONTH, Year.MAX_VAL… in test_with_TemporalField_long() 60 …als(YearMonth.of(Year.MIN_VALUE, Month.JANUARY), ym.with(ChronoField.PROLEPTIC_MONTH, Year.MIN_VAL… in test_with_TemporalField_long() 75 { ChronoField.PROLEPTIC_MONTH, Year.MAX_VALUE * 12L + 12 }, in test_with_TemporalField_long_invalidValue() 76 { ChronoField.PROLEPTIC_MONTH, Year.MIN_VALUE * 12L - 1 }, in test_with_TemporalField_long_invalidValue()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ThaiBuddhistChronologyTest.java | 44 case PROLEPTIC_MONTH: in test_range() 47 ChronoField.PROLEPTIC_MONTH.range().getMinimum() + YEARS_AHEAD * 12L, in test_range() 48 ChronoField.PROLEPTIC_MONTH.range().getMaximum() + YEARS_AHEAD * 12L); in test_range() 119 assertEquals(10 * 12 + 2 - 1, date.getLong(ChronoField.PROLEPTIC_MONTH)); in test_ThaiBuddhistDate_getLong()
|
D | MinguoChronologyTest.java | 44 case PROLEPTIC_MONTH: in test_range() 47 ChronoField.PROLEPTIC_MONTH.range().getMinimum() - YEARS_BEHIND * 12L, in test_range() 48 ChronoField.PROLEPTIC_MONTH.range().getMaximum() - YEARS_BEHIND * 12L); in test_range() 117 assertEquals(10*12 + 2 - 1, date.getLong(ChronoField.PROLEPTIC_MONTH)); in test_MinguoDate_getLong()
|
D | HijrahChronologyTest.java | 47 assertEquals(1300 * 12 + 2 - 1, date.getLong(ChronoField.PROLEPTIC_MONTH)); in test_HijrahDate_getLong()
|
D | JapaneseChronologyTest.java | 110 assertEquals(true, date.isSupported(ChronoField.PROLEPTIC_MONTH)); in test_JapaneseDate_isSupported_TemporalField()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | MinguoChronology.java | 60 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 316 case PROLEPTIC_MONTH: { in range() 317 ValueRange range = PROLEPTIC_MONTH.range(); in range()
|
D | ThaiBuddhistChronology.java | 60 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 352 case PROLEPTIC_MONTH: { in range() 353 ValueRange range = PROLEPTIC_MONTH.range(); in range()
|
D | ChronoLocalDateImpl.java | 62 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 405 long packed1 = getLong(PROLEPTIC_MONTH) * 32L + get(DAY_OF_MONTH); // no overflow in monthsUntil() 406 long packed2 = end.getLong(PROLEPTIC_MONTH) * 32L + end.get(DAY_OF_MONTH); // no overflow in monthsUntil()
|
D | IsoChronology.java | 68 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 497 Long pMonth = fieldValues.remove(PROLEPTIC_MONTH); in resolveProlepticMonth() 500 PROLEPTIC_MONTH.checkValidValue(pMonth); in resolveProlepticMonth()
|
D | MinguoDate.java | 279 case PROLEPTIC_MONTH: in getLong() 312 case PROLEPTIC_MONTH: in with()
|
D | ThaiBuddhistDate.java | 279 case PROLEPTIC_MONTH: in getLong() 312 case PROLEPTIC_MONTH: in with()
|
D | AbstractChronology.java | 74 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 499 Long pMonth = fieldValues.remove(PROLEPTIC_MONTH); in resolveProlepticMonth() 502 PROLEPTIC_MONTH.checkValidValue(pMonth); in resolveProlepticMonth() 507 .with(DAY_OF_MONTH, 1).with(PROLEPTIC_MONTH, pMonth); in resolveProlepticMonth()
|
D | HijrahDate.java | 373 case PROLEPTIC_MONTH: return getProlepticMonth(); in getLong() 404 case PROLEPTIC_MONTH: return plusMonths(newValue - getProlepticMonth()); in with()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoFieldSerialization.java | 81 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 117 {PROLEPTIC_MONTH}, in data_fieldBased()
|
/libcore/ojluni/src/main/java/java/time/ |
D | YearMonth.java | 66 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 351 field == PROLEPTIC_MONTH || field == YEAR_OF_ERA || field == ERA; in isSupported() 483 case PROLEPTIC_MONTH: return getProlepticMonth(); in getLong() 682 case PROLEPTIC_MONTH: return plusMonths(newValue - getProlepticMonth()); in with() 988 return temporal.with(PROLEPTIC_MONTH, getProlepticMonth()); in adjustInto()
|
D | LocalDate.java | 74 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 650 if (field == PROLEPTIC_MONTH) { in getLong() 669 …case PROLEPTIC_MONTH: throw new UnsupportedTemporalTypeException("Invalid field 'ProlepticMonth' f… in get0() 1028 case PROLEPTIC_MONTH: return plusMonths(newValue - getProlepticMonth()); in with()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 89 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 245 {PROLEPTIC_MONTH, 2012 * 12L + (3 - 1), YEAR, 2012L, MONTH_OF_YEAR, 3L}, in data_resolveOneToField() 324 {PROLEPTIC_MONTH, 2012 * 12L + (3 - 1), YEAR, 2012, YEAR, 2012L, MONTH_OF_YEAR, 3L}, in data_resolveTwoToField() 325 … {PROLEPTIC_MONTH, 2012 * 12L + (3 - 1), YEAR_OF_ERA, 2012, YEAR, 2012L, MONTH_OF_YEAR, 3L}, in data_resolveTwoToField() 326 {PROLEPTIC_MONTH, 2012 * 12L + (3 - 1), ERA, 1, YEAR, 2012L, MONTH_OF_YEAR, 3L}, in data_resolveTwoToField() 327 {PROLEPTIC_MONTH, (3 - 1), YEAR, 0, YEAR, 0L, MONTH_OF_YEAR, 3L}, in data_resolveTwoToField() 328 {PROLEPTIC_MONTH, (3 - 1), YEAR_OF_ERA, 1, YEAR, 0L, MONTH_OF_YEAR, 3L}, in data_resolveTwoToField() 329 {PROLEPTIC_MONTH, (3 - 1), ERA, 0, YEAR, 0L, MONTH_OF_YEAR, 3L}, in data_resolveTwoToField() 365 {PROLEPTIC_MONTH, 2012 * 12 + (2 - 1), DAY_OF_MONTH, 25, LocalDate.of(2012, 2, 25)}, in data_resolveTwoToDate() 366 {PROLEPTIC_MONTH, 2012 * 12 + (2 - 1), DAY_OF_YEAR, 56, LocalDate.of(2012, 2, 25)}, in data_resolveTwoToDate() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticChronology.java | 236 case PROLEPTIC_MONTH: return ValueRange.of(-1000, 1000); // TODO in range()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 81 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 166 {PROLEPTIC_MONTH, true, false}, in data_fieldBased()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 485 …PROLEPTIC_MONTH("ProlepticMonth", MONTHS, FOREVER, ValueRange.of(Year.MIN_VALUE * 12L, Year.MAX_VA… enumConstant
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKDayOfWeek.java | 192 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.PROLEPTIC_MONTH), false); in test_isSupported_TemporalField()
|
D | TCKYearMonth.java | 64 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 144 PROLEPTIC_MONTH, in validFields() 425 assertEquals(TEST_2008_06.isSupported(ChronoField.PROLEPTIC_MONTH), true); in test_isSupported_TemporalField() 474 assertEquals(TEST_2008_06.getLong(PROLEPTIC_MONTH), 2008 * 12 + 6 - 1); in test_getLong_TemporalField()
|
D | TCKMonth.java | 184 assertEquals(Month.AUGUST.isSupported(ChronoField.PROLEPTIC_MONTH), false); in test_isSupported_TemporalField()
|
D | TCKLocalDate.java | 72 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH; 185 PROLEPTIC_MONTH, in validFields() 634 assertEquals(TEST_2007_07_15.isSupported(ChronoField.PROLEPTIC_MONTH), true); 688 assertEquals(test.getLong(PROLEPTIC_MONTH), 2008 * 12 + 6 - 1);
|