Home
last modified time | relevance | path

Searched refs:HOUR_OF_AMPM (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoFieldSerialization.java70 import static java.time.temporal.ChronoField.HOUR_OF_AMPM;
126 {HOUR_OF_AMPM}, in data_fieldBased()
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java67 import static java.time.temporal.ChronoField.HOUR_OF_AMPM;
384 updateCheckConflict(CLOCK_HOUR_OF_AMPM, HOUR_OF_AMPM, ch == 12 ? 0 : ch); in resolveTimeFields()
386 if (fieldValues.containsKey(AMPM_OF_DAY) && fieldValues.containsKey(HOUR_OF_AMPM)) { in resolveTimeFields()
388 long hap = fieldValues.remove(HOUR_OF_AMPM); in resolveTimeFields()
393 HOUR_OF_AMPM.checkValidValue(ap); in resolveTimeFields()
DDateTimeFormatterBuilder.java1855 FIELD_MAP.put('K', ChronoField.HOUR_OF_AMPM); // SDF, LDML
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java71 import static java.time.temporal.ChronoField.HOUR_OF_AMPM;
175 {HOUR_OF_AMPM, false, true}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java65 import static java.time.temporal.ChronoField.HOUR_OF_AMPM;
179 HOUR_OF_AMPM, in validFields()
574 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.HOUR_OF_AMPM), true); in test_isSupported_TemporalField()
633 assertEquals(test.get(ChronoField.HOUR_OF_AMPM), 0); in test_get_TemporalField()
649 assertEquals(test.getLong(ChronoField.HOUR_OF_AMPM), 0); in test_getLong_TemporalField()
929 LocalTime test = TEST_12_30_40_987654321.with(HOUR_OF_AMPM, i); in test_with_longTemporalField_hourOfAmPm()
930 assertEquals(test.get(HOUR_OF_AMPM), i); in test_with_longTemporalField_hourOfAmPm()
985 assertEquals(test.get(HOUR_OF_AMPM), TEST_12_30_40_987654321.get(HOUR_OF_AMPM)); in test_with_longTemporalField_amPmOfDay()
1028 {HOUR_OF_AMPM, time(0, 0, 0, 0), HOUR_OF_AMPM.range().getMinimum() - 1}, in data_withTemporalField_outOfRange()
1029 {HOUR_OF_AMPM, time(0, 0, 0, 0), HOUR_OF_AMPM.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
DTCKOffsetTime.java65 import static java.time.temporal.ChronoField.HOUR_OF_AMPM;
172 HOUR_OF_AMPM, in validFields()
532 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.HOUR_OF_AMPM), true);
588 assertEquals(test.get(ChronoField.HOUR_OF_AMPM), 0);
601 assertEquals(test.getLong(ChronoField.HOUR_OF_AMPM), 0);
784 …assertEquals(test.with(ChronoField.HOUR_OF_AMPM, 6), OffsetTime.of(18, 30, 40, 987654321, OFFSET_P…
DTCKDayOfWeek.java178 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKOffsetDateTime.java75 import static java.time.temporal.ChronoField.HOUR_OF_AMPM;
191 HOUR_OF_AMPM, in validFields()
549 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.HOUR_OF_AMPM), true);
611 assertEquals(test.get(ChronoField.HOUR_OF_AMPM), 0);
630 assertEquals(test.getLong(ChronoField.HOUR_OF_AMPM), 0);
DTCKMonth.java170 assertEquals(Month.AUGUST.isSupported(ChronoField.HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKZonedDateTime.java75 import static java.time.temporal.ChronoField.HOUR_OF_AMPM;
193 HOUR_OF_AMPM, in validFields()
875 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.HOUR_OF_AMPM), true);
937 assertEquals(test.get(ChronoField.HOUR_OF_AMPM), 0);
956 assertEquals(test.getLong(ChronoField.HOUR_OF_AMPM), 0);
DTCKLocalDateTime.java74 import static java.time.temporal.ChronoField.HOUR_OF_AMPM;
196 HOUR_OF_AMPM, in validFields()
932 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.HOUR_OF_AMPM), true);
994 assertEquals(test.get(ChronoField.HOUR_OF_AMPM), 0);
1011 assertEquals(test.getLong(ChronoField.HOUR_OF_AMPM), 0);
DTCKMonthDay.java392 assertEquals(TEST_07_15.isSupported(ChronoField.HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKYear.java346 assertEquals(TEST_2008.isSupported(ChronoField.HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKYearMonth.java411 assertEquals(TEST_2008_06.isSupported(ChronoField.HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKLocalDate.java620 assertEquals(TEST_2007_07_15.isSupported(ChronoField.HOUR_OF_AMPM), false);
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java106 ChronoField.HOUR_OF_AMPM, in test_with_TemporalField_long_invalidField()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java77 import static java.time.temporal.ChronoField.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()
404 {AMPM_OF_DAY, 0, HOUR_OF_AMPM, 5, LocalTime.of(5, 0)}, in data_resolveTwoToTime()
405 {AMPM_OF_DAY, 1, HOUR_OF_AMPM, 5, LocalTime.of(17, 0)}, in data_resolveTwoToTime()
841 assertEquals(accessor.isSupported(HOUR_OF_AMPM), true); in test_resolveClockHourOfAmPm()
842 assertEquals(accessor.getLong(HOUR_OF_AMPM), expectedValue.longValue()); in test_resolveClockHourOfAmPm()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java97 assertEquals(false, date.isSupported(ChronoField.HOUR_OF_AMPM)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java273 HOUR_OF_AMPM("HourOfAmPm", HOURS, HALF_DAYS, ValueRange.of(0, 11)), enumConstant
/libcore/ojluni/src/main/java/java/time/
DLocalTime.java667 case HOUR_OF_AMPM: return hour % 12; in get0()
842 case HOUR_OF_AMPM: return plusHours(newValue - (hour % 12)); in with()