Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestFractionPrinterParser.java64 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
226 …getFormatter(SECOND_OF_MINUTE, minWidth, maxWidth, true).formatTo(new MockFieldValue(SECOND_OF_MIN… in test_print_seconds()
235 …getFormatter(SECOND_OF_MINUTE, minWidth, maxWidth, false).formatTo(new MockFieldValue(SECOND_OF_MI… in test_print_seconds_noDecimalPoint()
301 …TemporalAccessor parsed = getFormatter(SECOND_OF_MINUTE, minWidth, maxWidth, true).parseUnresolved… in test_reverseParse_seconds()
303 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.java81 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
419 updateCheckConflict(NANO_OF_DAY, SECOND_OF_MINUTE, (nod / 1_000_000_000L) % 60); in resolveTimeFields()
445 updateCheckConflict(SECOND_OF_DAY, SECOND_OF_MINUTE, sod % 60); in resolveTimeFields()
494 … fieldValues.containsKey(SECOND_OF_MINUTE) && fieldValues.containsKey(NANO_OF_SECOND)) { in resolveTimeFields()
497 long som = fieldValues.remove(SECOND_OF_MINUTE); in resolveTimeFields()
531 !fieldValues.containsKey(SECOND_OF_MINUTE) && in resolveTimeLenient()
553 Long som = fieldValues.get(SECOND_OF_MINUTE); in resolveTimeLenient()
578 fieldValues.remove(SECOND_OF_MINUTE); in resolveTimeLenient()
611 int somVal = SECOND_OF_MINUTE.checkValidIntValue(som); in resolveTime()
631 fieldValues.containsKey(SECOND_OF_MINUTE))) { in resolveFractional()
DDateTimeFormatter.java71 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
849 .appendValue(SECOND_OF_MINUTE, 2)
1309 .appendValue(SECOND_OF_MINUTE, 2)
DDateTimeFormatterBuilder.java77 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
2108 FIELD_MAP.put('s', ChronoField.SECOND_OF_MINUTE); // SDF, LDML
3565 .appendValue(SECOND_OF_MINUTE, 2) in parse()
3581 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;
176 SECOND_OF_MINUTE, in validFields()
598 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.SECOND_OF_MINUTE), true); in test_isSupported_TemporalField()
656 assertEquals(test.get(ChronoField.SECOND_OF_MINUTE), 40); in test_get_TemporalField()
672 assertEquals(test.getLong(ChronoField.SECOND_OF_MINUTE), 40); in test_getLong_TemporalField()
839 assertEquals(test.get(SECOND_OF_MINUTE), TEST_12_30_40_987654321.get(SECOND_OF_MINUTE)); in test_with_longTemporalField_nanoOfSecond()
863 assertEquals(test.get(SECOND_OF_MINUTE), TEST_12_30_40_987654321.get(SECOND_OF_MINUTE)); in test_with_longTemporalField_microOfSecond()
888 assertEquals(test.get(SECOND_OF_MINUTE), TEST_12_30_40_987654321.get(SECOND_OF_MINUTE)); in test_with_longTemporalField_milliOfSecond()
908 LocalTime test = TEST_12_30_40_987654321.with(SECOND_OF_MINUTE, i); in test_with_longTemporalField_secondOfMinute()
909 assertEquals(test.get(SECOND_OF_MINUTE), i); in test_with_longTemporalField_secondOfMinute()
[all …]
DTCKOffsetTime.java77 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
164 SECOND_OF_MINUTE, in validFields()
520 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.SECOND_OF_MINUTE), true);
578 assertEquals(test.get(ChronoField.SECOND_OF_MINUTE), 40);
591 assertEquals(test.getLong(ChronoField.SECOND_OF_MINUTE), 40);
774 …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;
182 SECOND_OF_MINUTE, in validFields()
530 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.SECOND_OF_MINUTE), true);
594 assertEquals(test.get(ChronoField.SECOND_OF_MINUTE), 40);
613 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()
866 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.SECOND_OF_MINUTE), true);
930 assertEquals(test.get(ChronoField.SECOND_OF_MINUTE), 40);
949 assertEquals(test.getLong(ChronoField.SECOND_OF_MINUTE), 40);
DTCKLocalDateTime.java87 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
190 SECOND_OF_MINUTE, in validFields()
922 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.SECOND_OF_MINUTE), true);
986 assertEquals(test.get(ChronoField.SECOND_OF_MINUTE), 40);
1003 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.java366 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()
/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;
177 {YEAR, 2012, SECOND_OF_MINUTE, 5}, in data_resolveTwoNoChange()
186 {MONTH_OF_YEAR, 5, SECOND_OF_MINUTE, 5}, in data_resolveTwoNoChange()
217 {HOUR_OF_DAY, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5}, in data_resolveThreeNoChange()
218 {MINUTE_OF_HOUR, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5}, in data_resolveThreeNoChange()
427 {MINUTE_OF_DAY, 650, SECOND_OF_MINUTE, 8, LocalTime.of(10, 50, 8)}, in data_resolveTwoToTime()
442 {SECOND_OF_DAY, 3600 + 650, SECOND_OF_MINUTE, 50, LocalTime.of(1, 10, 50)}, in data_resolveTwoToTime()
450 …{MILLI_OF_DAY, (3600 + 650) * 1000L + 2, SECOND_OF_MINUTE, 50, LocalTime.of(1, 10, 50, 2_000_000)}, in data_resolveTwoToTime()
458 …{MICRO_OF_DAY, (3600 + 650) * 1000_000L + 2, SECOND_OF_MINUTE, 50, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime()
465 … {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;
318 SECOND_OF_MINUTE.checkValidValue(second); in of()
337 SECOND_OF_MINUTE.checkValidValue(second); in of()
687 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/chrono/
DChronology.java66 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
744 SECOND_OF_MINUTE.checkValidValue(second); in epochSecond()
DIsoChronology.java70 import static java.time.temporal.ChronoField.SECOND_OF_MINUTE;
299 SECOND_OF_MINUTE.checkValidValue(second); in epochSecond()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java237 SECOND_OF_MINUTE("SecondOfMinute", SECONDS, MINUTES, ValueRange.of(0, 59), "second"), enumConstant
666 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.java115 assertEquals(false, date.isSupported(ChronoField.SECOND_OF_MINUTE)); in test_JapaneseDate_isSupported_TemporalField()

12