Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoFieldSerialization.java63 import static java.time.temporal.ChronoField.AMPM_OF_DAY;
122 {AMPM_OF_DAY}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeTextProvider.java62 import static java.time.temporal.ChronoField.AMPM_OF_DAY;
177 {AMPM_OF_DAY, 0, TextStyle.SHORT, enUS, "AM"}, in data_text()
178 {AMPM_OF_DAY, 1, TextStyle.SHORT, enUS, "PM"}, in data_text()
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestChronoField.java87 fieldMap.put(ChronoField.AMPM_OF_DAY, "dayperiod"); in initClass()
115 {ChronoField.AMPM_OF_DAY}, in data_localeDisplayNames()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java69 import static java.time.temporal.ChronoField.AMPM_OF_DAY;
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()
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()
408 {AMPM_OF_DAY, 0, HOUR_OF_DAY, 5, LocalTime.of(5, 0)}, in data_resolveTwoToTime()
409 {AMPM_OF_DAY, 1, HOUR_OF_DAY, 17, LocalTime.of(17, 0)}, in data_resolveTwoToTime()
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()
420 {CLOCK_HOUR_OF_DAY, 8, AMPM_OF_DAY, 0, LocalTime.of(8, 0)}, in data_resolveTwoToTime()
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java64 import static java.time.temporal.ChronoField.AMPM_OF_DAY;
386 if (fieldValues.containsKey(AMPM_OF_DAY) && fieldValues.containsKey(HOUR_OF_AMPM)) { in resolveTimeFields()
387 long ap = fieldValues.remove(AMPM_OF_DAY); in resolveTimeFields()
390 … updateCheckConflict(AMPM_OF_DAY, HOUR_OF_DAY, Math.addExact(Math.multiplyExact(ap, 12), hap)); in resolveTimeFields()
392 AMPM_OF_DAY.checkValidValue(ap); in resolveTimeFields()
394 updateCheckConflict(AMPM_OF_DAY, HOUR_OF_DAY, ap * 12 + hap); in resolveTimeFields()
DDateTimeTextProvider.java67 import static java.time.temporal.ChronoField.AMPM_OF_DAY;
194 } else if (field == AMPM_OF_DAY) { in getText()
263 case AMPM_OF_DAY: in getTextIterator()
412 if (field == AMPM_OF_DAY) { in createStore()
DDateTimeFormatterBuilder.java1861 FIELD_MAP.put('a', ChronoField.AMPM_OF_DAY); // SDF, LDML
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java329 AMPM_OF_DAY("AmPmOfDay", HALF_DAYS, DAYS, ValueRange.of(0, 1), "dayperiod"), enumConstant
640 case AMPM_OF_DAY: in getIcuFieldNumber()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java63 import static java.time.temporal.ChronoField.AMPM_OF_DAY;
171 {AMPM_OF_DAY, false, true}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java62 import static java.time.temporal.ChronoField.AMPM_OF_DAY;
184 AMPM_OF_DAY, in validFields()
612 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.AMPM_OF_DAY), true); in test_isSupported_TemporalField()
670 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1); in test_get_TemporalField()
686 assertEquals(test.getLong(ChronoField.AMPM_OF_DAY), 1); in test_getLong_TemporalField()
965 assertEquals(test.get(AMPM_OF_DAY), TEST_12_30_40_987654321.get(AMPM_OF_DAY)); in test_with_longTemporalField_hourOfAmPm()
979 assertEquals(test.get(AMPM_OF_DAY), TEST_12_30_40_987654321.get(AMPM_OF_DAY)); in test_with_longTemporalField_clockHourOfAmPm()
1017 LocalTime test = TEST_12_30_40_987654321.with(AMPM_OF_DAY, i); in test_with_longTemporalField_amPmOfDay()
1018 assertEquals(test.get(AMPM_OF_DAY), i); in test_with_longTemporalField_amPmOfDay()
1074 {AMPM_OF_DAY, time(0, 0, 0, 0), AMPM_OF_DAY.range().getMinimum() - 1}, in data_withTemporalField_outOfRange()
[all …]
DTCKOffsetTime.java62 import static java.time.temporal.ChronoField.AMPM_OF_DAY;
175 AMPM_OF_DAY, in validFields()
536 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.AMPM_OF_DAY), true);
589 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1);
602 assertEquals(test.getLong(ChronoField.AMPM_OF_DAY), 1);
785 …assertEquals(test.with(ChronoField.AMPM_OF_DAY, 0), OffsetTime.of(0, 30, 40, 987654321, OFFSET_PON…
DTCKDayOfWeek.java182 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.AMPM_OF_DAY), false); in test_isSupported_TemporalField()
DTCKOffsetDateTime.java67 import static java.time.temporal.ChronoField.AMPM_OF_DAY;
194 AMPM_OF_DAY, in validFields()
553 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.AMPM_OF_DAY), true);
612 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1);
631 assertEquals(test.getLong(ChronoField.AMPM_OF_DAY), 1);
DTCKMonth.java174 assertEquals(Month.AUGUST.isSupported(ChronoField.AMPM_OF_DAY), false); in test_isSupported_TemporalField()
DTCKZonedDateTime.java67 import static java.time.temporal.ChronoField.AMPM_OF_DAY;
196 AMPM_OF_DAY, in validFields()
879 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.AMPM_OF_DAY), true);
938 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1);
957 assertEquals(test.getLong(ChronoField.AMPM_OF_DAY), 1);
DTCKLocalDateTime.java66 import static java.time.temporal.ChronoField.AMPM_OF_DAY;
199 AMPM_OF_DAY, in validFields()
936 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.AMPM_OF_DAY), true);
995 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1);
1012 assertEquals(test.getLong(ChronoField.AMPM_OF_DAY), 1);
DTCKMonthDay.java396 assertEquals(TEST_07_15.isSupported(ChronoField.AMPM_OF_DAY), false); in test_isSupported_TemporalField()
DTCKLocalDate.java624 assertEquals(TEST_2007_07_15.isSupported(ChronoField.AMPM_OF_DAY), false);
878 TEST_2007_07_15.with(ChronoField.AMPM_OF_DAY, 1);
DTCKYear.java350 assertEquals(TEST_2008.isSupported(ChronoField.AMPM_OF_DAY), false); in test_isSupported_TemporalField()
DTCKYearMonth.java415 assertEquals(TEST_2008_06.isSupported(ChronoField.AMPM_OF_DAY), false); in test_isSupported_TemporalField()
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java99 ChronoField.AMPM_OF_DAY, in test_with_TemporalField_long_invalidField()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java92 assertEquals(false, date.isSupported(ChronoField.AMPM_OF_DAY)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/main/java/java/time/
DLocalTime.java694 case AMPM_OF_DAY: return hour / 12; in get0()
869 case AMPM_OF_DAY: return plusHours((newValue - (hour / 12)) * 12); in with()
/libcore/ojluni/src/main/java/java/util/
DFormatter.java4227 String s = ampm[t.get(ChronoField.AMPM_OF_DAY)];
/libcore/api/
Dcurrent.txt11861 enum_constant public static final java.time.temporal.ChronoField AMPM_OF_DAY;