Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java82 import static java.time.temporal.ChronoField.SECOND_OF_DAY;
133 {SECOND_OF_DAY, SECONDS, DAYS}, in data_fieldUnit()
178 {SECOND_OF_DAY, false, true}, in data_fieldBased()
218 {SECOND_OF_DAY, LocalTime.of(5, 4, 3, 200), true, 5*3600 + 4*60 + 3}, in data_fieldAndAccessor()
219 … {SECOND_OF_DAY, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 5*3600 + 4*60 + 3}, in data_fieldAndAccessor()
233 {SECOND_OF_DAY, LocalDate.of(2000, 2, 29), false, -1}, in data_fieldAndAccessor()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoFieldSerialization.java82 import static java.time.temporal.ChronoField.SECOND_OF_DAY;
129 {SECOND_OF_DAY}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeParsing.java68 import static java.time.temporal.ChronoField.SECOND_OF_DAY;
159 assertEquals(actual.isSupported(SECOND_OF_DAY), true); in test_parse_instantZones_supported()
198 assertEquals(actual.isSupported(SECOND_OF_DAY), false); in test_parse_instantNoZone_supported()
DTestZoneTextPrinterParser.java79 .with(ChronoField.SECOND_OF_DAY, r.nextInt(86400)); in test_printText()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java90 import static java.time.temporal.ChronoField.SECOND_OF_DAY;
300 {SECOND_OF_DAY, 3600 + 650, LocalTime.of(1, 10, 50)}, in data_resolveOneToTime()
433 {SECOND_OF_DAY, 3600 + 650, MILLI_OF_SECOND, 2, LocalTime.of(1, 10, 50, 2_000_000)}, in data_resolveTwoToTime()
434 {SECOND_OF_DAY, 3600 + 650, MICRO_OF_SECOND, 2, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime()
435 {SECOND_OF_DAY, 3600 + 650, NANO_OF_SECOND, 2, LocalTime.of(1, 10, 50, 2)}, in data_resolveTwoToTime()
437 {SECOND_OF_DAY, 3600 + 650, HOUR_OF_DAY, 1, LocalTime.of(1, 10, 50)}, in data_resolveTwoToTime()
438 {SECOND_OF_DAY, 3600 + 650, MINUTE_OF_HOUR, 10, LocalTime.of(1, 10, 50)}, in data_resolveTwoToTime()
439 {SECOND_OF_DAY, 3600 + 650, SECOND_OF_MINUTE, 50, LocalTime.of(1, 10, 50)}, in data_resolveTwoToTime()
702 … DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(SECOND_OF_DAY).toFormatter(); in test_resolveSecondOfDay()
1205 .appendValue(SECOND_OF_DAY).toFormatter(); in test_parse_fromField_SecondOfDay()
[all …]
/libcore/ojluni/src/main/java/java/time/
DLocalTime.java69 import static java.time.temporal.ChronoField.SECOND_OF_DAY;
375 SECOND_OF_DAY.checkValidValue(secondOfDay); in ofSecondOfDay()
687 case SECOND_OF_DAY: return toSecondOfDay(); in get0()
862 case SECOND_OF_DAY: return plusSeconds(newValue - toSecondOfDay()); in with()
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java118 ChronoField.SECOND_OF_DAY, in test_with_TemporalField_long_invalidField()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java75 import static java.time.temporal.ChronoField.SECOND_OF_DAY;
177 SECOND_OF_DAY, in validFields()
605 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.SECOND_OF_DAY), true); in test_isSupported_TemporalField()
665 assertEquals(test.get(ChronoField.SECOND_OF_DAY), 12 * 3600 + 30 * 60 + 40); in test_get_TemporalField()
681 assertEquals(test.getLong(ChronoField.SECOND_OF_DAY), 12 * 3600 + 30 * 60 + 40); in test_getLong_TemporalField()
927 LocalTime test = TEST_12_30_40_987654321.with(SECOND_OF_DAY, i); in test_with_longTemporalField_secondOfDay()
928 assertEquals(test.get(SECOND_OF_DAY), i); in test_with_longTemporalField_secondOfDay()
1053 {SECOND_OF_DAY, time(0, 0, 0, 0), SECOND_OF_DAY.range().getMinimum() - 1}, in data_withTemporalField_outOfRange()
1054 {SECOND_OF_DAY, time(0, 0, 0, 0), SECOND_OF_DAY.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
DTCKDayOfWeek.java175 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField()
DTCKMonth.java167 assertEquals(Month.AUGUST.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField()
DTCKOffsetTime.java76 import static java.time.temporal.ChronoField.SECOND_OF_DAY;
168 SECOND_OF_DAY, in validFields()
529 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.SECOND_OF_DAY), true);
DTCKOffsetDateTime.java89 import static java.time.temporal.ChronoField.SECOND_OF_DAY;
187 SECOND_OF_DAY, in validFields()
546 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.SECOND_OF_DAY), true);
DTCKZonedDateTime.java89 import static java.time.temporal.ChronoField.SECOND_OF_DAY;
189 SECOND_OF_DAY, in validFields()
872 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.SECOND_OF_DAY), true);
DTCKLocalDateTime.java86 import static java.time.temporal.ChronoField.SECOND_OF_DAY;
192 SECOND_OF_DAY, in validFields()
929 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.SECOND_OF_DAY), true);
DTCKYear.java343 assertEquals(TEST_2008.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField()
DTCKInstant.java528 … {Instant.ofEpochSecond(10, 200), ChronoField.SECOND_OF_DAY, 1, null, DateTimeException.class},
DTCKYearMonth.java408 assertEquals(TEST_2008_06.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField()
DTCKLocalDate.java617 assertEquals(TEST_2007_07_15.isSupported(ChronoField.SECOND_OF_DAY), false);
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java114 assertEquals(false, date.isSupported(ChronoField.SECOND_OF_DAY)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java238 SECOND_OF_DAY("SecondOfDay", SECONDS, DAYS, ValueRange.of(0, 86400L - 1)), enumConstant
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java107 .with(ChronoField.SECOND_OF_DAY, r.nextInt(86400)); in test()