/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatterBuilder.java | 63 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 739 …DateTimeFormatter f = builder.appendValue(HOUR_OF_DAY, 2).appendValue(MINUTE_OF_HOUR, 2).appendLit… in test_adjacent_strict_firstFixedWidth() 744 assertEquals(parsed.getLong(HOUR_OF_DAY), 12L); in test_adjacent_strict_firstFixedWidth() 751 …DateTimeFormatter f = builder.appendValue(HOUR_OF_DAY).appendValue(MINUTE_OF_HOUR, 2).appendLitera… in test_adjacent_strict_firstVariableWidth_success() 756 assertEquals(parsed.getLong(HOUR_OF_DAY), 123L); in test_adjacent_strict_firstVariableWidth_success() 763 …DateTimeFormatter f = builder.appendValue(HOUR_OF_DAY).appendValue(MINUTE_OF_HOUR, 2).appendLitera… in test_adjacent_strict_firstVariableWidth_fails() 773 …DateTimeFormatter f = builder.parseLenient().appendValue(HOUR_OF_DAY, 2).appendValue(MINUTE_OF_HOU… in test_adjacent_lenient() 778 assertEquals(parsed.getLong(HOUR_OF_DAY), 12L); in test_adjacent_lenient() 785 …DateTimeFormatter f = builder.parseLenient().appendValue(HOUR_OF_DAY).appendValue(MINUTE_OF_HOUR, … in test_adjacent_lenient_firstVariableWidth_success() 790 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; 214 {HOUR_OF_DAY, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5}, in data_resolveThreeNoChange() 296 {HOUR_OF_DAY, 8, LocalTime.of(8, 0)}, in data_resolveOneToTime() 401 {HOUR_OF_DAY, 8, MINUTE_OF_HOUR, 6, LocalTime.of(8, 6)}, 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() 417 {CLOCK_HOUR_OF_DAY, 8, HOUR_OF_DAY, 8, LocalTime.of(8, 0)}, in data_resolveTwoToTime() 426 {MINUTE_OF_DAY, 650, HOUR_OF_DAY, 10, LocalTime.of(10, 50)}, in data_resolveTwoToTime() 437 {SECOND_OF_DAY, 3600 + 650, HOUR_OF_DAY, 1, LocalTime.of(1, 10, 50)}, in data_resolveTwoToTime() 445 … {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 | 219 cal.add(Calendar.HOUR_OF_DAY, 1); in findDstEntryAndExit() 232 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/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/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/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/main/java/java/time/ |
D | LocalTime.java | 64 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 291 HOUR_OF_DAY.checkValidValue(hour); in of() 312 HOUR_OF_DAY.checkValidValue(hour); in of() 334 HOUR_OF_DAY.checkValidValue(hour); in of() 692 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() 610 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.HOUR_OF_DAY), true); in test_isSupported_TemporalField() 660 assertEquals(test.get(ChronoField.HOUR_OF_DAY), 12); in test_get_TemporalField() 676 assertEquals(test.getLong(ChronoField.HOUR_OF_DAY), 12); in test_getLong_TemporalField() 843 assertEquals(test.get(HOUR_OF_DAY), TEST_12_30_40_987654321.get(HOUR_OF_DAY)); in test_with_longTemporalField_nanoOfSecond() 867 assertEquals(test.get(HOUR_OF_DAY), TEST_12_30_40_987654321.get(HOUR_OF_DAY)); in test_with_longTemporalField_microOfSecond() 892 assertEquals(test.get(HOUR_OF_DAY), TEST_12_30_40_987654321.get(HOUR_OF_DAY)); in test_with_longTemporalField_milliOfSecond() 916 assertEquals(test.get(HOUR_OF_DAY), TEST_12_30_40_987654321.get(HOUR_OF_DAY)); in test_with_longTemporalField_secondOfMinute() 940 assertEquals(test.get(HOUR_OF_DAY), TEST_12_30_40_987654321.get(HOUR_OF_DAY)); in test_with_longTemporalField_minuteOfHour() [all …]
|
/libcore/luni/src/main/java/libcore/icu/ |
D | DateIntervalFormat.java | 92 return c.get(Calendar.HOUR_OF_DAY) == 0 && in isExactlyMidnight()
|
D | DateUtilsBridge.java | 161 return c.get(Calendar.HOUR_OF_DAY) == 0 && c.get(Calendar.MINUTE) == 0; in isDisplayMidnightUsingSkeleton()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 302 HOUR_OF_DAY("HourOfDay", HOURS, DAYS, ValueRange.of(0, 23), "hour"), enumConstant 638 case HOUR_OF_DAY: in getIcuFieldNumber()
|
/libcore/luni/src/test/java/libcore/java/time/format/ |
D | DateTimeFormatterTest.java | 106 assertEquals(23, accessor.getLong(ChronoField.HOUR_OF_DAY)); in test_format_locale_my_MM()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 722 this.set(HOUR_OF_DAY, hourOfDay); in GregorianCalendar() 1016 case HOUR_OF_DAY: 1067 timeOfDay += internalGet(HOUR_OF_DAY); 1199 case HOUR_OF_DAY: in roll() 1227 internalSet(HOUR_OF_DAY, hourOfDay); in roll() 1999 t += internalGet(HOUR_OF_DAY); in getYearOffsetInMillis() 2456 internalSet(HOUR_OF_DAY, hours); in computeFields() 2465 internalSet(HOUR_OF_DAY, 0); in computeFields() 2698 if (isFieldSet(fieldMask, HOUR_OF_DAY)) { in computeTime() 2699 timeOfDay += (long) internalGet(HOUR_OF_DAY); in computeTime()
|
D | Calendar.java | 518 public final static int HOUR_OF_DAY = 11; field in Calendar 1012 final static int HOUR_OF_DAY_MASK = (1 << HOUR_OF_DAY); 1266 return setFields(HOUR_OF_DAY, hourOfDay, MINUTE, minute, in setTimeOfDay() 1917 set(HOUR_OF_DAY, hourOfDay); in set() 1945 set(HOUR_OF_DAY, hourOfDay); in set() 2534 int hourOfDayStamp = stamp[HOUR_OF_DAY]; in selectFields()
|
D | JapaneseImperialCalendar.java | 450 case HOUR_OF_DAY: in add() 501 timeOfDay += internalGet(HOUR_OF_DAY); in add() 587 case HOUR_OF_DAY: in roll() 616 internalSet(HOUR_OF_DAY, hourOfDay); in roll() 1668 internalSet(HOUR_OF_DAY, hours); in computeFields() 1677 internalSet(HOUR_OF_DAY, 0); in computeFields() 1893 if (isFieldSet(fieldMask, HOUR_OF_DAY)) { in computeTime() 1894 timeOfDay += (long) internalGet(HOUR_OF_DAY); in computeTime()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | YearMonthTest.java | 107 ChronoField.HOUR_OF_DAY, in test_with_TemporalField_long_invalidField()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatter.java | 67 import static java.time.temporal.ChronoField.HOUR_OF_DAY; 804 .appendValue(HOUR_OF_DAY, 2) 1255 .appendValue(HOUR_OF_DAY, 2)
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | XMLFormatter.java | 67 a2(sb, cal.get(Calendar.HOUR_OF_DAY)); in appendISO8601()
|