Home
last modified time | relevance | path

Searched refs:CLOCK_HOUR_OF_AMPM (Results 1 – 21 of 21) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoFieldSerialization.java64 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
125 {CLOCK_HOUR_OF_AMPM}, in data_fieldBased()
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java65 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
378 if (fieldValues.containsKey(CLOCK_HOUR_OF_AMPM)) { in resolveTimeFields()
380 long ch = fieldValues.remove(CLOCK_HOUR_OF_AMPM); in resolveTimeFields()
382 CLOCK_HOUR_OF_AMPM.checkValidValue(ch); in resolveTimeFields()
384 updateCheckConflict(CLOCK_HOUR_OF_AMPM, HOUR_OF_AMPM, ch == 12 ? 0 : ch); in resolveTimeFields()
DDateTimeFormatterBuilder.java1856 FIELD_MAP.put('h', ChronoField.CLOCK_HOUR_OF_AMPM); // SDF, LDML
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java65 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
174 {CLOCK_HOUR_OF_AMPM, false, true}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java70 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
247 {CLOCK_HOUR_OF_AMPM, 8, HOUR_OF_AMPM, 8L, null, null}, in data_resolveOneToField()
248 {CLOCK_HOUR_OF_AMPM, 12, HOUR_OF_AMPM, 0L, null, null}, in data_resolveOneToField()
406 {AMPM_OF_DAY, 0, CLOCK_HOUR_OF_AMPM, 5, LocalTime.of(5, 0)}, in data_resolveTwoToTime()
407 {AMPM_OF_DAY, 1, CLOCK_HOUR_OF_AMPM, 5, LocalTime.of(17, 0)}, in data_resolveTwoToTime()
418 {CLOCK_HOUR_OF_DAY, 8, CLOCK_HOUR_OF_AMPM, 8, LocalTime.of(8, 0)}, in data_resolveTwoToTime()
419 {CLOCK_HOUR_OF_DAY, 20, CLOCK_HOUR_OF_AMPM, 8, LocalTime.of(20, 0)}, in data_resolveTwoToTime()
428 {MINUTE_OF_DAY, 650, CLOCK_HOUR_OF_AMPM, 10, LocalTime.of(10, 50)}, in data_resolveTwoToTime()
834 …DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(CLOCK_HOUR_OF_AMPM).toFormatter(); in test_resolveClockHourOfAmPm()
840 assertEquals(accessor.isSupported(CLOCK_HOUR_OF_AMPM), false); in test_resolveClockHourOfAmPm()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java63 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
178 CLOCK_HOUR_OF_AMPM, in validFields()
575 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), true); in test_isSupported_TemporalField()
634 assertEquals(test.get(ChronoField.CLOCK_HOUR_OF_AMPM), 12); in test_get_TemporalField()
650 assertEquals(test.getLong(ChronoField.CLOCK_HOUR_OF_AMPM), 12); in test_getLong_TemporalField()
943 LocalTime test = TEST_12_30_40_987654321.with(CLOCK_HOUR_OF_AMPM, i); in test_with_longTemporalField_clockHourOfAmPm()
944 assertEquals(test.get(CLOCK_HOUR_OF_AMPM), i); in test_with_longTemporalField_clockHourOfAmPm()
1031 {CLOCK_HOUR_OF_AMPM, time(0, 0, 0, 0), CLOCK_HOUR_OF_AMPM.range().getMinimum() - 1}, in data_withTemporalField_outOfRange()
1032 {CLOCK_HOUR_OF_AMPM, time(0, 0, 0, 0), CLOCK_HOUR_OF_AMPM.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
DTCKDayOfWeek.java179 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKMonth.java171 assertEquals(Month.AUGUST.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKOffsetTime.java63 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
171 CLOCK_HOUR_OF_AMPM, in validFields()
533 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), true);
DTCKOffsetDateTime.java68 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
190 CLOCK_HOUR_OF_AMPM, in validFields()
550 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), true);
DTCKMonthDay.java393 assertEquals(TEST_07_15.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKZonedDateTime.java68 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
192 CLOCK_HOUR_OF_AMPM, in validFields()
876 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), true);
DTCKLocalDateTime.java67 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
195 CLOCK_HOUR_OF_AMPM, in validFields()
933 …assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), true);
DTCKYear.java347 assertEquals(TEST_2008.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKYearMonth.java412 assertEquals(TEST_2008_06.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKLocalDate.java621 assertEquals(TEST_2007_07_15.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false);
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java100 ChronoField.CLOCK_HOUR_OF_AMPM, in test_with_TemporalField_long_invalidField()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java90 assertEquals(false, date.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java287 CLOCK_HOUR_OF_AMPM("ClockHourOfAmPm", HOURS, HALF_DAYS, ValueRange.of(1, 12)), enumConstant
/libcore/ojluni/src/main/java/java/time/
DLocalTime.java668 case CLOCK_HOUR_OF_AMPM: int ham = hour % 12; return (ham % 12 == 0 ? 12 : ham); in get0()
843 … case CLOCK_HOUR_OF_AMPM: return plusHours((newValue == 12 ? 0 : newValue) - (hour % 12)); in with()
/libcore/ojluni/src/main/java/java/util/
DFormatter.java4186 int i = t.get(ChronoField.CLOCK_HOUR_OF_AMPM);
4191 int i = t.get(ChronoField.CLOCK_HOUR_OF_AMPM);