Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatterBuilder.java64 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
277 builder.appendFraction(MINUTE_OF_HOUR, -1, 9, false); in test_appendFraction_4arg_minTooSmall()
282 builder.appendFraction(MINUTE_OF_HOUR, 10, 9, false); in test_appendFraction_4arg_minTooBig()
287 builder.appendFraction(MINUTE_OF_HOUR, 0, -1, false); in test_appendFraction_4arg_maxTooSmall()
292 builder.appendFraction(MINUTE_OF_HOUR, 1, 10, false); in test_appendFraction_4arg_maxTooBig()
297 builder.appendFraction(MINUTE_OF_HOUR, 9, 3, false); in test_appendFraction_4arg_maxWidthMinWidth()
739 …DateTimeFormatter f = builder.appendValue(HOUR_OF_DAY, 2).appendValue(MINUTE_OF_HOUR, 2).appendLit… in test_adjacent_strict_firstFixedWidth()
745 assertEquals(parsed.getLong(MINUTE_OF_HOUR), 30L); 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()
757 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;
173 {YEAR, 2012, MINUTE_OF_HOUR, 5}, in data_resolveTwoNoChange()
182 {MONTH_OF_YEAR, 5, MINUTE_OF_HOUR, 5}, in data_resolveTwoNoChange()
215 {MINUTE_OF_HOUR, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5}, in data_resolveThreeNoChange()
401 {HOUR_OF_DAY, 8, MINUTE_OF_HOUR, 6, LocalTime.of(8, 6)}, in data_resolveTwoToTime()
414 {CLOCK_HOUR_OF_DAY, 8, MINUTE_OF_HOUR, 6, LocalTime.of(8, 6)}, in data_resolveTwoToTime()
415 {CLOCK_HOUR_OF_DAY, 24, MINUTE_OF_HOUR, 6, LocalTime.of(0, 6)}, in data_resolveTwoToTime()
430 {MINUTE_OF_DAY, 650, MINUTE_OF_HOUR, 50, LocalTime.of(10, 50)}, in data_resolveTwoToTime()
438 {SECOND_OF_DAY, 3600 + 650, MINUTE_OF_HOUR, 10, LocalTime.of(1, 10, 50)}, in data_resolveTwoToTime()
446 … {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.java75 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
403 updateCheckConflict(NANO_OF_DAY, MINUTE_OF_HOUR, (nod / 60_000_000_000L) % 60); in resolveTimeFields()
429 updateCheckConflict(SECOND_OF_DAY, MINUTE_OF_HOUR, (sod / 60) % 60); in resolveTimeFields()
438 updateCheckConflict(MINUTE_OF_DAY, MINUTE_OF_HOUR, mod % 60); in resolveTimeFields()
465 if (fieldValues.containsKey(HOUR_OF_DAY) && fieldValues.containsKey(MINUTE_OF_HOUR) && in resolveTimeFields()
468 long moh = fieldValues.remove(MINUTE_OF_HOUR); in resolveTimeFields()
503 Long moh = fieldValues.get(MINUTE_OF_HOUR); in resolveTimeLenient()
519 fieldValues.remove(MINUTE_OF_HOUR); in resolveTimeLenient()
546 int mohVal = MINUTE_OF_HOUR.checkValidIntValue(moh); in resolveTime()
DDateTimeFormatter.java68 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
806 .appendValue(MINUTE_OF_HOUR, 2)
1257 .appendValue(MINUTE_OF_HOUR, 2)
DDateTimeFormatterBuilder.java73 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
1866 FIELD_MAP.put('m', ChronoField.MINUTE_OF_HOUR); // SDF, LDML
3265 .appendValue(MINUTE_OF_HOUR, 2).appendLiteral(':') in parse()
3281 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/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/test/java/time/tck/java/time/
DTCKLocalTime.java72 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
178 MINUTE_OF_HOUR, in validFields()
606 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.MINUTE_OF_HOUR), true); in test_isSupported_TemporalField()
661 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30); in test_get_TemporalField()
677 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30); in test_getLong_TemporalField()
844 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_nanoOfSecond()
868 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_microOfSecond()
893 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_milliOfSecond()
917 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_secondOfMinute()
938 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;
169 MINUTE_OF_HOUR, in validFields()
530 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.MINUTE_OF_HOUR), true);
585 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30);
598 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30);
781 …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;
188 MINUTE_OF_HOUR, in validFields()
547 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.MINUTE_OF_HOUR), true);
608 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30);
627 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()
873 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.MINUTE_OF_HOUR), true);
934 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30);
953 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30);
1324 …PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS).withEarlierOffsetAtOverlap(), MINUTE_OF_HOUR, 20,
1326 …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;
193 MINUTE_OF_HOUR, in validFields()
930 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.MINUTE_OF_HOUR), true);
991 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30);
1008 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30);
DTCKMonthDay.java390 assertEquals(TEST_07_15.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField()
DTCKYear.java344 assertEquals(TEST_2008.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField()
DTCKInstant.java531 … {Instant.ofEpochSecond(10, 200), ChronoField.MINUTE_OF_HOUR, 1, null, DateTimeException.class},
/libcore/ojluni/src/main/java/java/time/
DLocalTime.java66 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
295 MINUTE_OF_HOUR.checkValidValue(minute); in of()
316 MINUTE_OF_HOUR.checkValidValue(minute); in of()
335 MINUTE_OF_HOUR.checkValidValue(minute); in of()
688 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.java64 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR;
299 builder.appendFraction(MINUTE_OF_HOUR, 1, 9, false); in test_appendFraction_4arg()
316 builder.appendFraction(MINUTE_OF_HOUR, -1, 9, false); in test_appendFraction_4arg_minTooSmall()
321 builder.appendFraction(MINUTE_OF_HOUR, 10, 9, false); in test_appendFraction_4arg_minTooBig()
326 builder.appendFraction(MINUTE_OF_HOUR, 0, -1, false); in test_appendFraction_4arg_maxTooSmall()
331 builder.appendFraction(MINUTE_OF_HOUR, 1, 10, false); in test_appendFraction_4arg_maxTooBig()
336 builder.appendFraction(MINUTE_OF_HOUR, 9, 3, false); in test_appendFraction_4arg_maxWidthMinWidth()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java248 MINUTE_OF_HOUR("MinuteOfHour", MINUTES, HOURS, ValueRange.of(0, 59), "minute"), enumConstant
636 case MINUTE_OF_HOUR: in getIcuFieldNumber()
/libcore/luni/src/test/java/libcore/java/time/format/
DDateTimeFormatterTest.java107 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