Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoFieldSerialization.java65 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_DAY;
123 {CLOCK_HOUR_OF_DAY}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java71 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_DAY;
297 {CLOCK_HOUR_OF_DAY, 8, LocalTime.of(8, 0)}, in data_resolveOneToTime()
298 {CLOCK_HOUR_OF_DAY, 24, LocalTime.of(0, 0)}, in data_resolveOneToTime()
410 {AMPM_OF_DAY, 0, CLOCK_HOUR_OF_DAY, 5, LocalTime.of(5, 0)}, in data_resolveTwoToTime()
411 {AMPM_OF_DAY, 1, CLOCK_HOUR_OF_DAY, 17, LocalTime.of(17, 0)}, in data_resolveTwoToTime()
414 {CLOCK_HOUR_OF_DAY, 8, MINUTE_OF_HOUR, 6, LocalTime.of(8, 6)}, in data_resolveTwoToTime()
415 {CLOCK_HOUR_OF_DAY, 24, MINUTE_OF_HOUR, 6, LocalTime.of(0, 6)}, in data_resolveTwoToTime()
417 {CLOCK_HOUR_OF_DAY, 8, HOUR_OF_DAY, 8, LocalTime.of(8, 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()
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java66 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_DAY;
370 if (fieldValues.containsKey(CLOCK_HOUR_OF_DAY)) { in resolveTimeFields()
372 long ch = fieldValues.remove(CLOCK_HOUR_OF_DAY); in resolveTimeFields()
374 CLOCK_HOUR_OF_DAY.checkValidValue(ch); in resolveTimeFields()
376 updateCheckConflict(CLOCK_HOUR_OF_DAY, HOUR_OF_DAY, ch == 24 ? 0 : ch); in resolveTimeFields()
DDateTimeFormatterBuilder.java1863 FIELD_MAP.put('k', ChronoField.CLOCK_HOUR_OF_DAY); // SDF, LDML
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java64 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_DAY;
172 {CLOCK_HOUR_OF_DAY, false, true}, in data_fieldBased()
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java101 ChronoField.CLOCK_HOUR_OF_DAY, in test_with_TemporalField_long_invalidField()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java64 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_DAY;
182 CLOCK_HOUR_OF_DAY, in validFields()
611 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.CLOCK_HOUR_OF_DAY), true); in test_isSupported_TemporalField()
669 assertEquals(test.get(ChronoField.CLOCK_HOUR_OF_DAY), 12); in test_get_TemporalField()
685 assertEquals(test.getLong(ChronoField.CLOCK_HOUR_OF_DAY), 12); in test_getLong_TemporalField()
1004 LocalTime test = TEST_12_30_40_987654321.with(CLOCK_HOUR_OF_DAY, i); in test_with_longTemporalField_clockHourOfDay()
1005 assertEquals(test.get(CLOCK_HOUR_OF_DAY), i); in test_with_longTemporalField_clockHourOfDay()
1071 {CLOCK_HOUR_OF_DAY, time(0, 0, 0, 0), CLOCK_HOUR_OF_DAY.range().getMinimum() - 1}, in data_withTemporalField_outOfRange()
1072 {CLOCK_HOUR_OF_DAY, time(0, 0, 0, 0), CLOCK_HOUR_OF_DAY.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
DTCKDayOfWeek.java181 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.CLOCK_HOUR_OF_DAY), false); in test_isSupported_TemporalField()
DTCKMonth.java173 assertEquals(Month.AUGUST.isSupported(ChronoField.CLOCK_HOUR_OF_DAY), false); in test_isSupported_TemporalField()
DTCKOffsetTime.java64 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_DAY;
173 CLOCK_HOUR_OF_DAY, in validFields()
535 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.CLOCK_HOUR_OF_DAY), true);
DTCKOffsetDateTime.java69 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_DAY;
192 CLOCK_HOUR_OF_DAY, in validFields()
552 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.CLOCK_HOUR_OF_DAY), true);
DTCKMonthDay.java395 assertEquals(TEST_07_15.isSupported(ChronoField.CLOCK_HOUR_OF_DAY), false); in test_isSupported_TemporalField()
DTCKZonedDateTime.java69 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_DAY;
194 CLOCK_HOUR_OF_DAY, in validFields()
878 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.CLOCK_HOUR_OF_DAY), true);
DTCKLocalDateTime.java68 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_DAY;
197 CLOCK_HOUR_OF_DAY, in validFields()
935 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.CLOCK_HOUR_OF_DAY), true);
DTCKYear.java349 assertEquals(TEST_2008.isSupported(ChronoField.CLOCK_HOUR_OF_DAY), false); in test_isSupported_TemporalField()
DTCKYearMonth.java414 assertEquals(TEST_2008_06.isSupported(ChronoField.CLOCK_HOUR_OF_DAY), false); in test_isSupported_TemporalField()
DTCKLocalDate.java623 assertEquals(TEST_2007_07_15.isSupported(ChronoField.CLOCK_HOUR_OF_DAY), false);
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java94 assertEquals(false, date.isSupported(ChronoField.CLOCK_HOUR_OF_DAY)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java316 CLOCK_HOUR_OF_DAY("ClockHourOfDay", HOURS, DAYS, ValueRange.of(1, 24)), enumConstant
/libcore/ojluni/src/main/java/java/time/
DLocalTime.java693 case CLOCK_HOUR_OF_DAY: return (hour == 0 ? 24 : hour); in get0()
868 case CLOCK_HOUR_OF_DAY: return withHour((int) (newValue == 24 ? 0 : newValue)); in with()
/libcore/api/
Dcurrent.txt11863 enum_constant public static final java.time.temporal.ChronoField CLOCK_HOUR_OF_DAY;