Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatterBuilder.java65 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
285 builder.appendFraction(MINUTE_OF_HOUR, -1, 9, false); in test_appendFraction_4arg_minTooSmall()
290 builder.appendFraction(MINUTE_OF_HOUR, 10, 9, false); in test_appendFraction_4arg_minTooBig()
295 builder.appendFraction(MINUTE_OF_HOUR, 0, -1, false); in test_appendFraction_4arg_maxTooSmall()
300 builder.appendFraction(MINUTE_OF_HOUR, 1, 10, false); in test_appendFraction_4arg_maxTooBig()
305 builder.appendFraction(MINUTE_OF_HOUR, 9, 3, false); in test_appendFraction_4arg_maxWidthMinWidth()
1114 …DateTimeFormatter f = builder.appendValue(HOUR_OF_DAY, 2).appendValue(MINUTE_OF_HOUR, 2).appendLit… in test_adjacent_strict_firstFixedWidth()
1120 assertEquals(parsed.getLong(MINUTE_OF_HOUR), 30L); 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()
1132 assertEquals(parsed.getLong(MINUTE_OF_HOUR), 9L); in test_adjacent_strict_firstVariableWidth_success()
[all …]
DTCKDateTimeParseResolver.java85 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
176 {YEAR, 2012, MINUTE_OF_HOUR, 5}, in data_resolveTwoNoChange()
185 {MONTH_OF_YEAR, 5, MINUTE_OF_HOUR, 5}, in data_resolveTwoNoChange()
218 {MINUTE_OF_HOUR, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5}, in data_resolveThreeNoChange()
404 {HOUR_OF_DAY, 8, MINUTE_OF_HOUR, 6, LocalTime.of(8, 6)}, in data_resolveTwoToTime()
417 {CLOCK_HOUR_OF_DAY, 8, MINUTE_OF_HOUR, 6, LocalTime.of(8, 6)}, in data_resolveTwoToTime()
418 {CLOCK_HOUR_OF_DAY, 24, MINUTE_OF_HOUR, 6, LocalTime.of(0, 6)}, in data_resolveTwoToTime()
433 {MINUTE_OF_DAY, 650, MINUTE_OF_HOUR, 50, LocalTime.of(10, 50)}, in data_resolveTwoToTime()
441 {SECOND_OF_DAY, 3600 + 650, MINUTE_OF_HOUR, 10, LocalTime.of(1, 10, 50)}, in data_resolveTwoToTime()
449 … {MILLI_OF_DAY, (3600 + 650) * 1000L + 2, MINUTE_OF_HOUR, 10, LocalTime.of(1, 10, 50, 2_000_000)}, in data_resolveTwoToTime()
[all …]
DTCKDateTimeFormatters.java67 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
1300 test.fieldValues.put(MINUTE_OF_HOUR, (long) min); in createTime()
1328 test.fieldValues.put(MINUTE_OF_HOUR, (long) min); in createDateTime()
1357 mock.fields.put(MINUTE_OF_HOUR, (long) min); in buildAccessor()
1440 fields.put(MINUTE_OF_HOUR, (long) dt.getMinute()); in setFields()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java77 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
132 {MINUTE_OF_HOUR, MINUTES, HOURS}, in data_fieldUnit()
177 {MINUTE_OF_HOUR, false, true}, in data_fieldBased()
215 {MINUTE_OF_HOUR, LocalTime.of(5, 4, 3, 200), true, 4}, in data_fieldAndAccessor()
216 {MINUTE_OF_HOUR, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 4}, in data_fieldAndAccessor()
232 {MINUTE_OF_HOUR, LocalDate.of(2000, 2, 29), false, -1}, in data_fieldAndAccessor()
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java76 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
418 updateCheckConflict(NANO_OF_DAY, MINUTE_OF_HOUR, (nod / 60_000_000_000L) % 60); in resolveTimeFields()
444 updateCheckConflict(SECOND_OF_DAY, MINUTE_OF_HOUR, (sod / 60) % 60); in resolveTimeFields()
453 updateCheckConflict(MINUTE_OF_DAY, MINUTE_OF_HOUR, mod % 60); in resolveTimeFields()
484 Long mohObj = fieldValues.get(MINUTE_OF_HOUR); in resolveTimeFields()
493 if (fieldValues.containsKey(HOUR_OF_DAY) && fieldValues.containsKey(MINUTE_OF_HOUR) && in resolveTimeFields()
496 long moh = fieldValues.remove(MINUTE_OF_HOUR); in resolveTimeFields()
530 !fieldValues.containsKey(MINUTE_OF_HOUR) && in resolveTimeLenient()
552 Long moh = fieldValues.get(MINUTE_OF_HOUR); in resolveTimeLenient()
577 fieldValues.remove(MINUTE_OF_HOUR); in resolveTimeLenient()
[all …]
DDateTimeFormatter.java68 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
846 .appendValue(MINUTE_OF_HOUR, 2)
1306 .appendValue(MINUTE_OF_HOUR, 2)
DDateTimeFormatterBuilder.java73 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
2107 FIELD_MAP.put('m', ChronoField.MINUTE_OF_HOUR); // SDF, LDML
3564 .appendValue(MINUTE_OF_HOUR, 2).appendLiteral(':') in parse()
3580 int min = newContext.getParsed(MINUTE_OF_HOUR).intValue(); in parse()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoFieldSerialization.java77 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
128 {MINUTE_OF_HOUR}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java72 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
178 MINUTE_OF_HOUR, in validFields()
600 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.MINUTE_OF_HOUR), true); in test_isSupported_TemporalField()
655 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30); in test_get_TemporalField()
671 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30); in test_getLong_TemporalField()
838 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_nanoOfSecond()
862 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_microOfSecond()
887 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_milliOfSecond()
911 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_secondOfMinute()
932 LocalTime test = TEST_12_30_40_987654321.with(MINUTE_OF_HOUR, i); in test_with_longTemporalField_minuteOfHour()
[all …]
DTCKOffsetTime.java72 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
166 MINUTE_OF_HOUR, in validFields()
522 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.MINUTE_OF_HOUR), true);
577 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30);
590 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30);
773 …assertEquals(test.with(ChronoField.MINUTE_OF_HOUR, 50), OffsetTime.of(12, 50, 40, 987654321, OFFSE…
DTCKDayOfWeek.java176 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField()
DTCKOffsetDateTime.java83 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
184 MINUTE_OF_HOUR, in validFields()
532 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.MINUTE_OF_HOUR), true);
593 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30);
612 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30);
DTCKZonedDateTime.java83 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
190 MINUTE_OF_HOUR, in validFields()
868 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.MINUTE_OF_HOUR), true);
929 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30);
948 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30);
1319 …PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS).withEarlierOffsetAtOverlap(), MINUTE_OF_HOUR, 20,
1321 …T_PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS).withLaterOffsetAtOverlap(), MINUTE_OF_HOUR, 20,
DTCKMonth.java168 assertEquals(Month.AUGUST.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField()
DTCKLocalDateTime.java81 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
192 MINUTE_OF_HOUR, in validFields()
924 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.MINUTE_OF_HOUR), true);
985 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30);
1002 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30);
DTCKMonthDay.java390 assertEquals(TEST_07_15.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField()
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestChronoField.java91 fieldMap.put(ChronoField.MINUTE_OF_HOUR, "minute"); in initClass()
117 {ChronoField.MINUTE_OF_HOUR}, in data_localeDisplayNames()
/libcore/ojluni/src/main/java/java/time/
DLocalTime.java66 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
296 MINUTE_OF_HOUR.checkValidValue(minute); in of()
317 MINUTE_OF_HOUR.checkValidValue(minute); in of()
336 MINUTE_OF_HOUR.checkValidValue(minute); in of()
689 case MINUTE_OF_HOUR: return minute; in get0()
863 case MINUTE_OF_HOUR: return withMinute((int) newValue); in with()
907 MINUTE_OF_HOUR.checkValidValue(minute); in withMinute()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeFormatterBuilder.java66 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
309 builder.appendFraction(MINUTE_OF_HOUR, 1, 9, false); in test_appendFraction_4arg()
326 builder.appendFraction(MINUTE_OF_HOUR, -1, 9, false); in test_appendFraction_4arg_minTooSmall()
331 builder.appendFraction(MINUTE_OF_HOUR, 10, 9, false); in test_appendFraction_4arg_minTooBig()
336 builder.appendFraction(MINUTE_OF_HOUR, 0, -1, false); in test_appendFraction_4arg_maxTooSmall()
341 builder.appendFraction(MINUTE_OF_HOUR, 1, 10, false); in test_appendFraction_4arg_maxTooBig()
346 builder.appendFraction(MINUTE_OF_HOUR, 9, 3, false); in test_appendFraction_4arg_maxWidthMinWidth()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronology.java65 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
743 MINUTE_OF_HOUR.checkValidValue(minute); in epochSecond()
DIsoChronology.java67 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
298 MINUTE_OF_HOUR.checkValidValue(minute); in epochSecond()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java259 MINUTE_OF_HOUR("MinuteOfHour", MINUTES, HOURS, ValueRange.of(0, 59), "minute"), enumConstant
668 case MINUTE_OF_HOUR: in getIcuFieldNumber()
/libcore/luni/src/test/java/libcore/java/time/format/
DDateTimeFormatterTest.java115 assertEquals(59, accessor.getLong(ChronoField.MINUTE_OF_HOUR)); in test_format_locale_my_MM()
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java114 ChronoField.MINUTE_OF_HOUR, in test_with_TemporalField_long_invalidField()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java108 assertEquals(false, date.isSupported(ChronoField.MINUTE_OF_HOUR)); in test_JapaneseDate_isSupported_TemporalField()

12