Home
last modified time | relevance | path

Searched refs:PROLEPTIC_MONTH (Results 1 – 25 of 32) sorted by relevance

12

/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestDateTimeBuilderCombinations.java71 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/
DYearMonthTest.java58 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/
DThaiBuddhistChronologyTest.java44 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()
DMinguoChronologyTest.java44 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()
DHijrahChronologyTest.java47 assertEquals(1300 * 12 + 2 - 1, date.getLong(ChronoField.PROLEPTIC_MONTH)); in test_HijrahDate_getLong()
DJapaneseChronologyTest.java110 assertEquals(true, date.isSupported(ChronoField.PROLEPTIC_MONTH)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/main/java/java/time/chrono/
DMinguoChronology.java60 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH;
316 case PROLEPTIC_MONTH: { in range()
317 ValueRange range = PROLEPTIC_MONTH.range(); in range()
DThaiBuddhistChronology.java60 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH;
352 case PROLEPTIC_MONTH: { in range()
353 ValueRange range = PROLEPTIC_MONTH.range(); in range()
DChronoLocalDateImpl.java62 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()
DIsoChronology.java68 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH;
497 Long pMonth = fieldValues.remove(PROLEPTIC_MONTH); in resolveProlepticMonth()
500 PROLEPTIC_MONTH.checkValidValue(pMonth); in resolveProlepticMonth()
DMinguoDate.java279 case PROLEPTIC_MONTH: in getLong()
312 case PROLEPTIC_MONTH: in with()
DThaiBuddhistDate.java279 case PROLEPTIC_MONTH: in getLong()
312 case PROLEPTIC_MONTH: in with()
DAbstractChronology.java74 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()
DHijrahDate.java373 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/
DTCKChronoFieldSerialization.java81 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH;
117 {PROLEPTIC_MONTH}, in data_fieldBased()
/libcore/ojluni/src/main/java/java/time/
DYearMonth.java66 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()
DLocalDate.java74 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/
DTCKDateTimeParseResolver.java89 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/
DCopticChronology.java236 case PROLEPTIC_MONTH: return ValueRange.of(-1000, 1000); // TODO in range()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java81 import static java.time.temporal.ChronoField.PROLEPTIC_MONTH;
166 {PROLEPTIC_MONTH, true, false}, in data_fieldBased()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java485PROLEPTIC_MONTH("ProlepticMonth", MONTHS, FOREVER, ValueRange.of(Year.MIN_VALUE * 12L, Year.MAX_VA… enumConstant
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDayOfWeek.java192 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.PROLEPTIC_MONTH), false); in test_isSupported_TemporalField()
DTCKYearMonth.java64 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()
DTCKMonth.java184 assertEquals(Month.AUGUST.isSupported(ChronoField.PROLEPTIC_MONTH), false); in test_isSupported_TemporalField()
DTCKLocalDate.java72 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);

12