Home
last modified time | relevance | path

Searched refs:SECOND_OF_MINUTE (Results 1 – 21 of 21) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestFractionPrinterParser.java63 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
223 …getFormatter(SECOND_OF_MINUTE, minWidth, maxWidth, true).formatTo(new MockFieldValue(SECOND_OF_MIN… in test_print_seconds()
232 …getFormatter(SECOND_OF_MINUTE, minWidth, maxWidth, false).formatTo(new MockFieldValue(SECOND_OF_MI… in test_print_seconds_noDecimalPoint()
298 …TemporalAccessor parsed = getFormatter(SECOND_OF_MINUTE, minWidth, maxWidth, true).parseUnresolved… in test_reverseParse_seconds()
300 assertParsed(parsed, SECOND_OF_MINUTE, value == 0 && minWidth == 0 ? null : (long) value); in test_reverseParse_seconds()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java83 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
134 {SECOND_OF_MINUTE, SECONDS, MINUTES}, in data_fieldUnit()
179 {SECOND_OF_MINUTE, false, true}, in data_fieldBased()
220 {SECOND_OF_MINUTE, LocalTime.of(5, 4, 3, 200), true, 3}, in data_fieldAndAccessor()
221 {SECOND_OF_MINUTE, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 3}, in data_fieldAndAccessor()
234 {SECOND_OF_MINUTE, LocalDate.of(2000, 2, 29), false, -1}, in data_fieldAndAccessor()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoFieldSerialization.java83 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
130 {SECOND_OF_MINUTE}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java91 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
174 {YEAR, 2012, SECOND_OF_MINUTE, 5}, in data_resolveTwoNoChange()
183 {MONTH_OF_YEAR, 5, SECOND_OF_MINUTE, 5}, in data_resolveTwoNoChange()
214 {HOUR_OF_DAY, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5}, in data_resolveThreeNoChange()
215 {MINUTE_OF_HOUR, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5}, in data_resolveThreeNoChange()
424 {MINUTE_OF_DAY, 650, SECOND_OF_MINUTE, 8, LocalTime.of(10, 50, 8)}, in data_resolveTwoToTime()
439 {SECOND_OF_DAY, 3600 + 650, SECOND_OF_MINUTE, 50, LocalTime.of(1, 10, 50)}, in data_resolveTwoToTime()
447 …{MILLI_OF_DAY, (3600 + 650) * 1000L + 2, SECOND_OF_MINUTE, 50, LocalTime.of(1, 10, 50, 2_000_000)}, in data_resolveTwoToTime()
455 …{MICRO_OF_DAY, (3600 + 650) * 1000_000L + 2, SECOND_OF_MINUTE, 50, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime()
462 … {NANO_OF_DAY, (3600 + 650) * 1000_000_000L + 2, SECOND_OF_MINUTE, 50, LocalTime.of(1, 10, 50, 2)}, in data_resolveTwoToTime()
[all …]
DTCKDateTimeFormatters.java71 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
1303 test.fieldValues.put(SECOND_OF_MINUTE, (long) sec); in createTime()
1331 test.fieldValues.put(SECOND_OF_MINUTE, (long) sec); in createDateTime()
1360 mock.fields.put(SECOND_OF_MINUTE, (long) sec); in buildAccessor()
1441 fields.put(SECOND_OF_MINUTE, (long) dt.getSecond()); in setFields()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java76 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
176 SECOND_OF_MINUTE, in validFields()
604 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.SECOND_OF_MINUTE), true); in test_isSupported_TemporalField()
662 assertEquals(test.get(ChronoField.SECOND_OF_MINUTE), 40); in test_get_TemporalField()
678 assertEquals(test.getLong(ChronoField.SECOND_OF_MINUTE), 40); in test_getLong_TemporalField()
845 assertEquals(test.get(SECOND_OF_MINUTE), TEST_12_30_40_987654321.get(SECOND_OF_MINUTE)); in test_with_longTemporalField_nanoOfSecond()
869 assertEquals(test.get(SECOND_OF_MINUTE), TEST_12_30_40_987654321.get(SECOND_OF_MINUTE)); in test_with_longTemporalField_microOfSecond()
894 assertEquals(test.get(SECOND_OF_MINUTE), TEST_12_30_40_987654321.get(SECOND_OF_MINUTE)); in test_with_longTemporalField_milliOfSecond()
914 LocalTime test = TEST_12_30_40_987654321.with(SECOND_OF_MINUTE, i); in test_with_longTemporalField_secondOfMinute()
915 assertEquals(test.get(SECOND_OF_MINUTE), i); in test_with_longTemporalField_secondOfMinute()
[all …]
DTCKOffsetTime.java77 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
167 SECOND_OF_MINUTE, in validFields()
528 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.SECOND_OF_MINUTE), true);
586 assertEquals(test.get(ChronoField.SECOND_OF_MINUTE), 40);
599 assertEquals(test.getLong(ChronoField.SECOND_OF_MINUTE), 40);
782 …assertEquals(test.with(ChronoField.SECOND_OF_MINUTE, 50), OffsetTime.of(12, 30, 50, 987654321, OFF…
DTCKDayOfWeek.java174 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.SECOND_OF_MINUTE), false); in test_isSupported_TemporalField()
DTCKOffsetDateTime.java90 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
186 SECOND_OF_MINUTE, in validFields()
545 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.SECOND_OF_MINUTE), true);
609 assertEquals(test.get(ChronoField.SECOND_OF_MINUTE), 40);
628 assertEquals(test.getLong(ChronoField.SECOND_OF_MINUTE), 40);
DTCKMonth.java166 assertEquals(Month.AUGUST.isSupported(ChronoField.SECOND_OF_MINUTE), false); in test_isSupported_TemporalField()
DTCKZonedDateTime.java90 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
188 SECOND_OF_MINUTE, in validFields()
871 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.SECOND_OF_MINUTE), true);
935 assertEquals(test.get(ChronoField.SECOND_OF_MINUTE), 40);
954 assertEquals(test.getLong(ChronoField.SECOND_OF_MINUTE), 40);
DTCKLocalDateTime.java87 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
191 SECOND_OF_MINUTE, in validFields()
928 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.SECOND_OF_MINUTE), true);
992 assertEquals(test.get(ChronoField.SECOND_OF_MINUTE), 40);
1009 assertEquals(test.getLong(ChronoField.SECOND_OF_MINUTE), 40);
DTCKYear.java342 assertEquals(TEST_2008.isSupported(ChronoField.SECOND_OF_MINUTE), false); in test_isSupported_TemporalField()
DTCKInstant.java527 … {Instant.ofEpochSecond(10, 200), ChronoField.SECOND_OF_MINUTE, 1, null, DateTimeException.class},
DTCKYearMonth.java407 assertEquals(TEST_2008_06.isSupported(ChronoField.SECOND_OF_MINUTE), false); in test_isSupported_TemporalField()
DTCKLocalDate.java616 assertEquals(TEST_2007_07_15.isSupported(ChronoField.SECOND_OF_MINUTE), false);
/libcore/ojluni/src/main/java/java/time/
DLocalTime.java70 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
317 SECOND_OF_MINUTE.checkValidValue(second); in of()
336 SECOND_OF_MINUTE.checkValidValue(second); in of()
686 case SECOND_OF_MINUTE: return second; in get0()
861 case SECOND_OF_MINUTE: return withSecond((int) newValue); in with()
924 SECOND_OF_MINUTE.checkValidValue(second); in withSecond()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java226 SECOND_OF_MINUTE("SecondOfMinute", SECONDS, MINUTES, ValueRange.of(0, 59), "second"), enumConstant
634 case SECOND_OF_MINUTE: in getIcuFieldNumber()
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java119 ChronoField.SECOND_OF_MINUTE, in test_with_TemporalField_long_invalidField()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java71 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
809 .appendValue(SECOND_OF_MINUTE, 2)
1260 .appendValue(SECOND_OF_MINUTE, 2)
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java115 assertEquals(false, date.isSupported(ChronoField.SECOND_OF_MINUTE)); in test_JapaneseDate_isSupported_TemporalField()