/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatterBuilder.java | 64 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 1114 …DateTimeFormatter f = builder.appendValue(HOUR_OF_DAY, 2).appendValue(MINUTE_OF_HOUR, 2).appendLit… in test_adjacent_strict_firstFixedWidth() 1119 assertEquals(parsed.getLong(HOUR_OF_DAY), 12L); in test_adjacent_strict_firstFixedWidth() 1126 …DateTimeFormatter f = builder.appendValue(HOUR_OF_DAY).appendValue(MINUTE_OF_HOUR, 2).appendLitera… in test_adjacent_strict_firstVariableWidth_success() 1131 assertEquals(parsed.getLong(HOUR_OF_DAY), 123L); in test_adjacent_strict_firstVariableWidth_success() 1138 …DateTimeFormatter f = builder.appendValue(HOUR_OF_DAY).appendValue(MINUTE_OF_HOUR, 2).appendLitera… in test_adjacent_strict_firstVariableWidth_fails() 1148 …DateTimeFormatter f = builder.parseLenient().appendValue(HOUR_OF_DAY, 2).appendValue(MINUTE_OF_HOU… in test_adjacent_lenient() 1153 assertEquals(parsed.getLong(HOUR_OF_DAY), 12L); in test_adjacent_lenient() 1160 …DateTimeFormatter f = builder.parseLenient().appendValue(HOUR_OF_DAY).appendValue(MINUTE_OF_HOUR, … in test_adjacent_lenient_firstVariableWidth_success() 1165 assertEquals(parsed.getLong(HOUR_OF_DAY), 123L); in test_adjacent_lenient_firstVariableWidth_success() [all …]
|
D | TCKDateTimeParseResolver.java | 78 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 217 {HOUR_OF_DAY, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5}, in data_resolveThreeNoChange() 299 {HOUR_OF_DAY, 8, LocalTime.of(8, 0)}, in data_resolveOneToTime() 404 {HOUR_OF_DAY, 8, MINUTE_OF_HOUR, 6, LocalTime.of(8, 6)}, in data_resolveTwoToTime() 411 {AMPM_OF_DAY, 0, HOUR_OF_DAY, 5, LocalTime.of(5, 0)}, in data_resolveTwoToTime() 412 {AMPM_OF_DAY, 1, HOUR_OF_DAY, 17, LocalTime.of(17, 0)}, in data_resolveTwoToTime() 420 {CLOCK_HOUR_OF_DAY, 8, HOUR_OF_DAY, 8, LocalTime.of(8, 0)}, in data_resolveTwoToTime() 429 {MINUTE_OF_DAY, 650, HOUR_OF_DAY, 10, LocalTime.of(10, 50)}, in data_resolveTwoToTime() 440 {SECOND_OF_DAY, 3600 + 650, HOUR_OF_DAY, 1, LocalTime.of(1, 10, 50)}, in data_resolveTwoToTime() 448 … {MILLI_OF_DAY, (3600 + 650) * 1000L + 2, HOUR_OF_DAY, 1, LocalTime.of(1, 10, 50, 2_000_000)}, in data_resolveTwoToTime() [all …]
|
D | TCKDateTimeFormatter.java | 65 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 358 .appendLiteral(':').optionalStart().appendValue(HOUR_OF_DAY, 2).optionalEnd() in test_format_withZone_withChronology() 458 assertEquals(result.isSupported(HOUR_OF_DAY), false); in test_parse_CharSequence() 468 assertEquals(result.isSupported(HOUR_OF_DAY), false); in test_parse_CharSequence_resolved() 493 assertEquals(result.isSupported(HOUR_OF_DAY), false); in test_parse_CharSequence_ParsePosition() 506 assertEquals(result.isSupported(HOUR_OF_DAY), false); in test_parse_CharSequence_ParsePosition_resolved()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | GregorianCalendarTest.java | 227 .get(Calendar.HOUR_OF_DAY)); in test_addII() 231 .get(Calendar.HOUR_OF_DAY)); in test_addII() 235 .get(Calendar.HOUR_OF_DAY)); in test_addII() 239 .get(Calendar.HOUR_OF_DAY)); in test_addII() 241 gc1.add(Calendar.HOUR_OF_DAY, 24); in test_addII() 243 .get(Calendar.HOUR_OF_DAY)); in test_addII() 248 .get(Calendar.HOUR_OF_DAY)); in test_addII() 252 .get(Calendar.HOUR_OF_DAY)); in test_addII() 256 .get(Calendar.HOUR_OF_DAY)); in test_addII() 260 .get(Calendar.HOUR_OF_DAY)); in test_addII() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | CalendarTest.java | 159 assertEquals(hour, calendar.get(Calendar.HOUR_OF_DAY)); in testSetSelfConsistent() 218 assertEquals("hour", hour, calendar.get(Calendar.HOUR_OF_DAY)); in assertCalendarEquals() 247 cal.clear(Calendar.HOUR_OF_DAY); in checkClear() 255 assertFalse(cal.isSet(Calendar.HOUR_OF_DAY)); in checkClear() 258 assertEquals(expectedHourOfDay, cal.get(Calendar.HOUR_OF_DAY)); in checkClear() 264 assertTrue(cal.isSet(Calendar.HOUR_OF_DAY)); in checkClear() 268 cal.set(Calendar.HOUR_OF_DAY, 1); in checkClear() 328 calendar.set(Calendar.HOUR_OF_DAY, 1); in testSetHourOfDayInEuropeLondon() 329 assertEquals(1,calendar.get(Calendar.HOUR_OF_DAY)); in testSetHourOfDayInEuropeLondon()
|
D | SimpleTimeZoneTest.java | 248 cal.add(Calendar.HOUR_OF_DAY, 1); in findDstEntryAndExit() 261 cal.add(Calendar.HOUR_OF_DAY, 1); in findDstEntryAndExit()
|
D | OldGregorianCalendarTest.java | 64 assertEquals(17, g.get(Calendar.HOUR_OF_DAY)); in test_computeFields()
|
D | CalendarBuilderTest.java | 119 builder.set(Calendar.HOUR_OF_DAY, 25); in test_setLenient() 129 expected.set(Calendar.HOUR_OF_DAY, 25); in test_setLenient()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 69 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 391 updateCheckConflict(CLOCK_HOUR_OF_DAY, HOUR_OF_DAY, ch == 24 ? 0 : ch); in resolveTimeFields() 405 … updateCheckConflict(AMPM_OF_DAY, HOUR_OF_DAY, Math.addExact(Math.multiplyExact(ap, 12), hap)); in resolveTimeFields() 409 updateCheckConflict(AMPM_OF_DAY, HOUR_OF_DAY, ap * 12 + hap); in resolveTimeFields() 417 updateCheckConflict(NANO_OF_DAY, HOUR_OF_DAY, nod / 3600_000_000_000L); in resolveTimeFields() 443 updateCheckConflict(SECOND_OF_DAY, HOUR_OF_DAY, sod / 3600); in resolveTimeFields() 452 updateCheckConflict(MINUTE_OF_DAY, HOUR_OF_DAY, mod / 60); in resolveTimeFields() 488 updateCheckConflict(HOUR_OF_AMPM, HOUR_OF_DAY, hod); in resolveTimeFields() 493 if (fieldValues.containsKey(HOUR_OF_DAY) && fieldValues.containsKey(MINUTE_OF_HOUR) && in resolveTimeFields() 495 long hod = fieldValues.remove(HOUR_OF_DAY); in resolveTimeFields() [all …]
|
D | DateTimeFormatter.java | 67 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 844 .appendValue(HOUR_OF_DAY, 2) 1304 .appendValue(HOUR_OF_DAY, 2)
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 70 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 130 {HOUR_OF_DAY, HOURS, DAYS}, in data_fieldUnit() 173 {HOUR_OF_DAY, false, true}, in data_fieldBased() 210 {HOUR_OF_DAY, LocalTime.of(5, 4, 3, 200), true, 5}, in data_fieldAndAccessor() 211 {HOUR_OF_DAY, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 5}, in data_fieldAndAccessor() 230 {HOUR_OF_DAY, LocalDate.of(2000, 2, 29), false, -1}, in data_fieldAndAccessor()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestNumberPrinter.java | 63 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 271 … assertEquals(getFormatter(HOUR_OF_DAY, 1, 19, SignStyle.NORMAL).toString(), "Value(HourOfDay)"); 275 …assertEquals(getFormatter(HOUR_OF_DAY, 2, 2, SignStyle.NOT_NEGATIVE).toString(), "Value(HourOfDay,… 279 …assertEquals(getFormatter(HOUR_OF_DAY, 1, 2, SignStyle.NOT_NEGATIVE).toString(), "Value(HourOfDay,…
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldResultSetGetterTests.java | 928 cal.set(Calendar.HOUR_OF_DAY, 12); in testGetTimeInt() 942 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimeInt() 987 cal1.set(Calendar.HOUR_OF_DAY, 12); in testGetTimeIntCalendar() 999 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimeIntCalendar() 1052 cal.set(Calendar.HOUR_OF_DAY, 12); in testGetTimeString() 1072 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimeString() 1112 cal1.set(Calendar.HOUR_OF_DAY, 12); in testGetTimeStringCalendar() 1124 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimeStringCalendar() 1171 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimestampInt() 1184 cal3.set(Calendar.HOUR_OF_DAY, 10); in testGetTimestampInt() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoFieldSerialization.java | 71 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 124 {HOUR_OF_DAY}, in data_fieldBased()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestChronoField.java | 90 fieldMap.put(ChronoField.HOUR_OF_DAY, "hour"); in initClass() 116 {ChronoField.HOUR_OF_DAY}, in data_localeDisplayNames()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalTime.java | 64 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 292 HOUR_OF_DAY.checkValidValue(hour); in of() 313 HOUR_OF_DAY.checkValidValue(hour); in of() 335 HOUR_OF_DAY.checkValidValue(hour); in of() 693 case HOUR_OF_DAY: return hour; in get0() 867 case HOUR_OF_DAY: return withHour((int) newValue); in with() 890 HOUR_OF_DAY.checkValidValue(hour); in withHour()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DataFormatFieldTest.java | 121 Calendar.HOUR_OF_DAY, Field.HOUR_OF_DAY0.getCalendarField()); in test_getCalendarField() 141 Field.HOUR_OF_DAY0, Field.ofCalendarField(Calendar.HOUR_OF_DAY)); in test_ofCalendarFieldI()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 66 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 183 HOUR_OF_DAY, in validFields() 604 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.HOUR_OF_DAY), true); in test_isSupported_TemporalField() 654 assertEquals(test.get(ChronoField.HOUR_OF_DAY), 12); in test_get_TemporalField() 670 assertEquals(test.getLong(ChronoField.HOUR_OF_DAY), 12); in test_getLong_TemporalField() 837 assertEquals(test.get(HOUR_OF_DAY), TEST_12_30_40_987654321.get(HOUR_OF_DAY)); in test_with_longTemporalField_nanoOfSecond() 861 assertEquals(test.get(HOUR_OF_DAY), TEST_12_30_40_987654321.get(HOUR_OF_DAY)); in test_with_longTemporalField_microOfSecond() 886 assertEquals(test.get(HOUR_OF_DAY), TEST_12_30_40_987654321.get(HOUR_OF_DAY)); in test_with_longTemporalField_milliOfSecond() 910 assertEquals(test.get(HOUR_OF_DAY), TEST_12_30_40_987654321.get(HOUR_OF_DAY)); in test_with_longTemporalField_secondOfMinute() 934 assertEquals(test.get(HOUR_OF_DAY), TEST_12_30_40_987654321.get(HOUR_OF_DAY)); in test_with_longTemporalField_minuteOfHour() [all …]
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | Chronology.java | 64 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 742 HOUR_OF_DAY.checkValidValue(hour); in epochSecond()
|
D | IsoChronology.java | 66 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 297 HOUR_OF_DAY.checkValidValue(hour); in epochSecond()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 723 this.set(HOUR_OF_DAY, hourOfDay); in GregorianCalendar() 1017 case HOUR_OF_DAY: 1068 timeOfDay += internalGet(HOUR_OF_DAY); 1200 case HOUR_OF_DAY: in roll() 1215 if (internalGet(HOUR_OF_DAY) == d.getHours()) { in roll() 1226 internalSet(HOUR_OF_DAY, hourOfDay); in roll() 1960 t += internalGet(HOUR_OF_DAY); in getYearOffsetInMillis() 2417 internalSet(HOUR_OF_DAY, hours); in computeFields() 2426 internalSet(HOUR_OF_DAY, 0); in computeFields() 2659 if (isFieldSet(fieldMask, HOUR_OF_DAY)) { in computeTime() [all …]
|
D | Calendar.java | 525 public static final int HOUR_OF_DAY = 11; field in Calendar 1020 static final int HOUR_OF_DAY_MASK = (1 << HOUR_OF_DAY); 1274 return setFields(HOUR_OF_DAY, hourOfDay, MINUTE, minute, in setTimeOfDay() 2000 set(HOUR_OF_DAY, hourOfDay); in set() 2028 set(HOUR_OF_DAY, hourOfDay); in set() 2608 int hourOfDayStamp = stamp[HOUR_OF_DAY]; in selectFields()
|
D | JapaneseImperialCalendar.java | 452 case HOUR_OF_DAY: in add() 503 timeOfDay += internalGet(HOUR_OF_DAY); in add() 591 case HOUR_OF_DAY: in roll() 620 internalSet(HOUR_OF_DAY, hourOfDay); in roll() 1633 internalSet(HOUR_OF_DAY, hours); 1642 internalSet(HOUR_OF_DAY, 0); 1858 if (isFieldSet(fieldMask, HOUR_OF_DAY)) { 1859 timeOfDay += (long) internalGet(HOUR_OF_DAY);
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 319 HOUR_OF_DAY("HourOfDay", HOURS, DAYS, ValueRange.of(0, 23), "hour"), enumConstant 670 case HOUR_OF_DAY: in getIcuFieldNumber()
|
/libcore/luni/src/test/java/libcore/java/time/format/ |
D | DateTimeFormatterTest.java | 114 assertEquals(23, accessor.getLong(ChronoField.HOUR_OF_DAY)); in test_format_locale_my_MM()
|