/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 82 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/ |
D | Parsed.java | 79 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/ |
D | TCKChronoFieldSerialization.java | 82 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/ |
D | TestDateTimeParsing.java | 68 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()
|
D | TestZoneTextPrinterParser.java | 80 .with(ChronoField.SECOND_OF_DAY, r.nextInt(86400)); in test_printText()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 90 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/ |
D | LocalTime.java | 69 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/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseChronologyTest.java | 108 assertEquals(false, date.isSupported(ChronoField.SECOND_OF_DAY)); in test_JapaneseDate_isSupported_TemporalField()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 75 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()
|
D | TCKDayOfWeek.java | 175 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKMonth.java | 167 assertEquals(Month.AUGUST.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKOffsetTime.java | 76 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);
|
D | TCKOffsetDateTime.java | 89 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);
|
D | TCKMonthDay.java | 389 assertEquals(TEST_07_15.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKZonedDateTime.java | 89 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);
|
D | TCKLocalDateTime.java | 86 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);
|
D | TCKYear.java | 343 assertEquals(TEST_2008.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKInstant.java | 528 … {Instant.ofEpochSecond(10, 200), ChronoField.SECOND_OF_DAY, 1, null, DateTimeException.class},
|
D | TCKYearMonth.java | 408 assertEquals(TEST_2008_06.isSupported(ChronoField.SECOND_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKLocalDate.java | 617 assertEquals(TEST_2007_07_15.isSupported(ChronoField.SECOND_OF_DAY), false);
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | YearMonthTest.java | 118 ChronoField.SECOND_OF_DAY, in test_with_TemporalField_long_invalidField()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 238 SECOND_OF_DAY("SecondOfDay", SECONDS, DAYS, ValueRange.of(0, 86400L - 1)), enumConstant
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 107 .with(ChronoField.SECOND_OF_DAY, r.nextInt(86400)); in test()
|