Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatterBuilder.java63 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 …]
DTCKDateTimeParseResolver.java78 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 …]
DTCKDateTimeFormatter.java65 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/
DGregorianCalendarTest.java227 .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/
DCalendarTest.java159 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()
DSimpleTimeZoneTest.java219 cal.add(Calendar.HOUR_OF_DAY, 1); in findDstEntryAndExit()
232 cal.add(Calendar.HOUR_OF_DAY, 1); in findDstEntryAndExit()
DOldGregorianCalendarTest.java64 assertEquals(17, g.get(Calendar.HOUR_OF_DAY)); in test_computeFields()
DCalendarBuilderTest.java119 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/
DTCKChronoField.java70 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/
DTestNumberPrinter.java63 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/
DTCKChronoFieldSerialization.java71 import static java.time.temporal.ChronoField.HOUR_OF_DAY;
124 {HOUR_OF_DAY}, in data_fieldBased()
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java928 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/
DLocalTime.java64 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/
DDataFormatFieldTest.java121 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/
DTCKLocalTime.java66 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/
DDateIntervalFormat.java92 return c.get(Calendar.HOUR_OF_DAY) == 0 && in isExactlyMidnight()
DDateUtilsBridge.java161 return c.get(Calendar.HOUR_OF_DAY) == 0 && c.get(Calendar.MINUTE) == 0; in isDisplayMidnightUsingSkeleton()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java302 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/
DDateTimeFormatterTest.java106 assertEquals(23, accessor.getLong(ChronoField.HOUR_OF_DAY)); in test_format_locale_my_MM()
/libcore/ojluni/src/main/java/java/util/
DGregorianCalendar.java722 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()
DCalendar.java518 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()
DJapaneseImperialCalendar.java450 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/
DYearMonthTest.java107 ChronoField.HOUR_OF_DAY, in test_with_TemporalField_long_invalidField()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java67 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/
DXMLFormatter.java67 a2(sb, cal.get(Calendar.HOUR_OF_DAY)); in appendISO8601()

12