Home
last modified time | relevance | path

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

12

/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/main/java/java/time/format/
DParsed.java80 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
404 updateCheckConflict(NANO_OF_DAY, SECOND_OF_MINUTE, (nod / 1_000_000_000L) % 60); in resolveTimeFields()
430 updateCheckConflict(SECOND_OF_DAY, SECOND_OF_MINUTE, sod % 60); in resolveTimeFields()
466 … fieldValues.containsKey(SECOND_OF_MINUTE) && fieldValues.containsKey(NANO_OF_SECOND)) { in resolveTimeFields()
469 long som = fieldValues.remove(SECOND_OF_MINUTE); in resolveTimeFields()
504 Long som = fieldValues.get(SECOND_OF_MINUTE); in resolveTimeLenient()
520 fieldValues.remove(SECOND_OF_MINUTE); in resolveTimeLenient()
553 int somVal = SECOND_OF_MINUTE.checkValidIntValue(som); in resolveTime()
573 fieldValues.containsKey(SECOND_OF_MINUTE))) { in resolveFractional()
DDateTimeFormatter.java71 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
809 .appendValue(SECOND_OF_MINUTE, 2)
1260 .appendValue(SECOND_OF_MINUTE, 2)
DDateTimeFormatterBuilder.java78 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
1858 FIELD_MAP.put('s', ChronoField.SECOND_OF_MINUTE); // SDF, LDML
3257 .appendValue(SECOND_OF_MINUTE, 2) in parse()
3273 Long secVal = newContext.getParsed(SECOND_OF_MINUTE); in parse()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java76 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
174 SECOND_OF_MINUTE, in validFields()
570 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.SECOND_OF_MINUTE), true); in test_isSupported_TemporalField()
628 assertEquals(test.get(ChronoField.SECOND_OF_MINUTE), 40); in test_get_TemporalField()
644 assertEquals(test.getLong(ChronoField.SECOND_OF_MINUTE), 40); in test_getLong_TemporalField()
811 assertEquals(test.get(SECOND_OF_MINUTE), TEST_12_30_40_987654321.get(SECOND_OF_MINUTE)); in test_with_longTemporalField_nanoOfSecond()
835 assertEquals(test.get(SECOND_OF_MINUTE), TEST_12_30_40_987654321.get(SECOND_OF_MINUTE)); in test_with_longTemporalField_microOfSecond()
860 assertEquals(test.get(SECOND_OF_MINUTE), TEST_12_30_40_987654321.get(SECOND_OF_MINUTE)); in test_with_longTemporalField_milliOfSecond()
880 LocalTime test = TEST_12_30_40_987654321.with(SECOND_OF_MINUTE, i); in test_with_longTemporalField_secondOfMinute()
881 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);
DTCKMonthDay.java388 assertEquals(TEST_07_15.isSupported(ChronoField.SECOND_OF_MINUTE), false); in test_isSupported_TemporalField()
DTCKYear.java342 assertEquals(TEST_2008.isSupported(ChronoField.SECOND_OF_MINUTE), false); in test_isSupported_TemporalField()
DTCKYearMonth.java407 assertEquals(TEST_2008_06.isSupported(ChronoField.SECOND_OF_MINUTE), false); in test_isSupported_TemporalField()
DTCKInstant.java527 … {Instant.ofEpochSecond(10, 200), ChronoField.SECOND_OF_MINUTE, 1, null, DateTimeException.class},
DTCKLocalDate.java616 assertEquals(TEST_2007_07_15.isSupported(ChronoField.SECOND_OF_MINUTE), false);
/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/test/java/time/temporal/
DTestChronoField.java92 fieldMap.put(ChronoField.SECOND_OF_MINUTE, "second"); in initClass()
118 {ChronoField.SECOND_OF_MINUTE}, in data_localeDisplayNames()
/libcore/ojluni/src/main/java/java/time/
DLocalTime.java70 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
316 SECOND_OF_MINUTE.checkValidValue(second); in of()
335 SECOND_OF_MINUTE.checkValidValue(second); in of()
663 case SECOND_OF_MINUTE: return second; in get0()
838 case SECOND_OF_MINUTE: return withSecond((int) newValue); in with()
901 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/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java112 assertEquals(false, date.isSupported(ChronoField.SECOND_OF_MINUTE)); in test_JapaneseDate_isSupported_TemporalField()

12