/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoUnit.java | 64 import static java.time.temporal.ChronoUnit.HALF_DAYS; 111 {HALF_DAYS, false, true, false}, in data_chronoUnit() 142 {HALF_DAYS, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(13, 2, 3, 400)}, in data_unitAndTemporal() 157 {HALF_DAYS, LocalDate.of(2000, 2, 29), false, 1, null}, in data_unitAndTemporal()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoUnitSerialization.java | 64 import static java.time.temporal.ChronoUnit.HALF_DAYS; 106 {HALF_DAYS}, in data_chronoUnit()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 73 import static java.time.temporal.ChronoUnit.HALF_DAYS; 273 HOUR_OF_AMPM("HourOfAmPm", HOURS, HALF_DAYS, ValueRange.of(0, 11)), 287 CLOCK_HOUR_OF_AMPM("ClockHourOfAmPm", HOURS, HALF_DAYS, ValueRange.of(1, 12)), 329 AMPM_OF_DAY("AmPmOfDay", HALF_DAYS, DAYS, ValueRange.of(0, 1), "dayperiod"),
|
D | ChronoUnit.java | 114 HALF_DAYS("HalfDays", Duration.ofSeconds(43200)), enumConstant
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | InstantTest.java | 42 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.HALF_DAYS)); in test_isSupported_TemporalUnit()
|
D | OffsetTimeTest.java | 62 assertPlusIsNoop(2, ChronoUnit.HALF_DAYS); in test_plus_noop()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKDuration.java | 63 import static java.time.temporal.ChronoUnit.HALF_DAYS; 343 {0, HALF_DAYS, 0, 0}, in provider_factory_of_longTemporalUnit() 351 {1, HALF_DAYS, 43200, 0}, in provider_factory_of_longTemporalUnit() 359 {3, HALF_DAYS, 3 * 43200, 0}, in provider_factory_of_longTemporalUnit() 367 {-1, HALF_DAYS, -43200, 0}, in provider_factory_of_longTemporalUnit() 375 {-3, HALF_DAYS, -3 * 43200, 0}, in provider_factory_of_longTemporalUnit() 389 {Long.MAX_VALUE / 43200, HALF_DAYS, (Long.MAX_VALUE / 43200) * 43200, 0}, in provider_factory_of_longTemporalUnit() 390 {Long.MIN_VALUE / 43200, HALF_DAYS, (Long.MIN_VALUE / 43200) * 43200, 0}, in provider_factory_of_longTemporalUnit() 408 {Long.MAX_VALUE / 43200 + 1, HALF_DAYS}, in provider_factory_of_longTemporalUnit_outOfRange() 409 {Long.MIN_VALUE / 43200 - 1, HALF_DAYS}, in provider_factory_of_longTemporalUnit_outOfRange() [all …]
|
D | TCKOffsetTime.java | 84 import static java.time.temporal.ChronoUnit.HALF_DAYS; 566 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoUnit.HALF_DAYS), true); 1079 … {OffsetTime.of(1, 1, 1, 0, OFFSET_PONE), OffsetTime.of(13, 1, 1, 0, OFFSET_PONE), HALF_DAYS, 1}, 1087 … {OffsetTime.of(1, 1, 1, 0, OFFSET_PONE), OffsetTime.of(14, 1, 1, 0, OFFSET_PTWO), HALF_DAYS, 1},
|
D | TCKLocalTime.java | 79 import static java.time.temporal.ChronoUnit.HALF_DAYS; 608 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoUnit.HALF_DAYS), true); in test_isSupported_TemporalUnit() 2275 {time(0, 0, 0, 0), time(0, 0, 0, 0), HALF_DAYS, 0}, 2283 {time(0, 0, 0, 0), time(2, 0, 0, 0), HALF_DAYS, 0}, 2291 {time(0, 0, 0, 0), time(14, 0, 0, 0), HALF_DAYS, 1},
|
D | TCKOffsetDateTime.java | 95 import static java.time.temporal.ChronoUnit.HALF_DAYS; 583 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoUnit.HALF_DAYS), true); 1149 … 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 13, 1, 1, 0, OFFSET_PONE), HALF_DAYS, 1}, 1157 … 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 14, 1, 1, 0, OFFSET_PTWO), HALF_DAYS, 1},
|
D | TCKLocalDateTime.java | 93 import static java.time.temporal.ChronoUnit.HALF_DAYS; 966 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoUnit.HALF_DAYS), true); 2811 {dtEpoch(0, 0, 0, 0), dtEpoch(0, 0, 0, 0), HALF_DAYS, 0}, 2819 {dtEpoch(0, 0, 0, 0), dtEpoch(2, 0, 0, 0), HALF_DAYS, 0}, 2827 {dtEpoch(0, 0, 0, 0), dtEpoch(14, 0, 0, 0), HALF_DAYS, 1},
|
D | TCKPeriod.java | 1167 {ChronoUnit.HALF_DAYS}, in data_badTemporalUnit()
|
D | TCKYear.java | 380 assertEquals(TEST_2008.isSupported(ChronoUnit.HALF_DAYS), false); in test_isSupported_TemporalUnit()
|
D | TCKYearMonth.java | 445 assertEquals(TEST_2008_06.isSupported(ChronoUnit.HALF_DAYS), false); in test_isSupported_TemporalUnit()
|
D | TCKLocalDate.java | 654 assertEquals(TEST_2007_07_15.isSupported(ChronoUnit.HALF_DAYS), false);
|
D | TCKZonedDateTime.java | 909 assertEquals(TEST_DATE_TIME.isSupported(ChronoUnit.HALF_DAYS), true);
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTimeImpl.java | 314 …case HALF_DAYS: return plusDays(amountToAdd / 256).plusHours((amountToAdd % 256) * 12); // no ove… in plus() 385 case HALF_DAYS: amount = Math.multiplyExact(amount, 2); break; in until()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 853 … case HALF_DAYS: return plusSeconds(Math.multiplyExact(amountToAdd, SECONDS_PER_DAY / 2)); in plus() 1148 case HALF_DAYS: return secondsUntil(end) / (12 * SECONDS_PER_HOUR); in until()
|
D | LocalTime.java | 1047 case HALF_DAYS: return plusHours((amountToAdd % 2) * 12); in plus() 1389 case HALF_DAYS: return nanosUntil / (12 * NANOS_PER_HOUR); in until()
|
D | LocalDateTime.java | 1186 …case HALF_DAYS: return plusDays(amountToAdd / 256).plusHours((amountToAdd % 256) * 12); // no ove… in plus() 1716 case HALF_DAYS: in until()
|
D | OffsetTime.java | 1182 case HALF_DAYS: return nanosUntil / (12 * NANOS_PER_HOUR); in until()
|