Home
last modified time | relevance | path

Searched refs:SECOND_OF_DAY (Results 1 – 23 of 23) 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/main/java/java/time/format/
DParsed.java79 import static java.time.temporal.ChronoField.SECOND_OF_DAY;
346 … updateCheckConflict(INSTANT_SECONDS, SECOND_OF_DAY, (long) zdt.toLocalTime().toSecondOfDay()); in resolveInstantFields0()
412 updateCheckConflict(MICRO_OF_DAY, SECOND_OF_DAY, cod / 1_000_000L); in resolveTimeFields()
420 updateCheckConflict(MILLI_OF_DAY, SECOND_OF_DAY, lod / 1_000); in resolveTimeFields()
423 if (fieldValues.containsKey(SECOND_OF_DAY)) { in resolveTimeFields()
424 long sod = fieldValues.remove(SECOND_OF_DAY); in resolveTimeFields()
426 SECOND_OF_DAY.checkValidValue(sod); in resolveTimeFields()
428 updateCheckConflict(SECOND_OF_DAY, HOUR_OF_DAY, sod / 3600); in resolveTimeFields()
429 updateCheckConflict(SECOND_OF_DAY, MINUTE_OF_HOUR, (sod / 60) % 60); in resolveTimeFields()
430 updateCheckConflict(SECOND_OF_DAY, SECOND_OF_MINUTE, sod % 60); in resolveTimeFields()
[all …]
/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.java80 .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;
352 SECOND_OF_DAY.checkValidValue(secondOfDay); in ofSecondOfDay()
664 case SECOND_OF_DAY: return toSecondOfDay(); in get0()
839 case SECOND_OF_DAY: return plusSeconds(newValue - toSecondOfDay()); in with()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java75 import static java.time.temporal.ChronoField.SECOND_OF_DAY;
175 SECOND_OF_DAY, in validFields()
571 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.SECOND_OF_DAY), true); in test_isSupported_TemporalField()
631 assertEquals(test.get(ChronoField.SECOND_OF_DAY), 12 * 3600 + 30 * 60 + 40); in test_get_TemporalField()
647 assertEquals(test.getLong(ChronoField.SECOND_OF_DAY), 12 * 3600 + 30 * 60 + 40); in test_getLong_TemporalField()
893 LocalTime test = TEST_12_30_40_987654321.with(SECOND_OF_DAY, i); in test_with_longTemporalField_secondOfDay()
894 assertEquals(test.get(SECOND_OF_DAY), i); in test_with_longTemporalField_secondOfDay()
1019 {SECOND_OF_DAY, time(0, 0, 0, 0), SECOND_OF_DAY.range().getMinimum() - 1}, in data_withTemporalField_outOfRange()
1020 {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);
DTCKMonthDay.java389 assertEquals(TEST_07_15.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField()
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()
DTCKYearMonth.java408 assertEquals(TEST_2008_06.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField()
DTCKInstant.java528 … {Instant.ofEpochSecond(10, 200), ChronoField.SECOND_OF_DAY, 1, null, DateTimeException.class},
DTCKLocalDate.java617 assertEquals(TEST_2007_07_15.isSupported(ChronoField.SECOND_OF_DAY), false);
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java118 ChronoField.SECOND_OF_DAY, in test_with_TemporalField_long_invalidField()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java111 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()