Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoUnit.java64 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/
DTCKChronoUnitSerialization.java64 import static java.time.temporal.ChronoUnit.HALF_DAYS;
106 {HALF_DAYS}, in data_chronoUnit()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java73 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"),
DChronoUnit.java114 HALF_DAYS("HalfDays", Duration.ofSeconds(43200)), enumConstant
/libcore/luni/src/test/java/libcore/java/time/
DInstantTest.java42 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.HALF_DAYS)); in test_isSupported_TemporalUnit()
DOffsetTimeTest.java62 assertPlusIsNoop(2, ChronoUnit.HALF_DAYS); in test_plus_noop()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java63 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 …]
DTCKOffsetTime.java84 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},
DTCKLocalTime.java79 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},
DTCKOffsetDateTime.java95 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},
DTCKLocalDateTime.java93 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},
DTCKPeriod.java1167 {ChronoUnit.HALF_DAYS}, in data_badTemporalUnit()
DTCKYear.java380 assertEquals(TEST_2008.isSupported(ChronoUnit.HALF_DAYS), false); in test_isSupported_TemporalUnit()
DTCKYearMonth.java445 assertEquals(TEST_2008_06.isSupported(ChronoUnit.HALF_DAYS), false); in test_isSupported_TemporalUnit()
DTCKLocalDate.java654 assertEquals(TEST_2007_07_15.isSupported(ChronoUnit.HALF_DAYS), false);
DTCKZonedDateTime.java909 assertEquals(TEST_DATE_TIME.isSupported(ChronoUnit.HALF_DAYS), true);
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTimeImpl.java314 …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/
DInstant.java853 … 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()
DLocalTime.java1047 case HALF_DAYS: return plusHours((amountToAdd % 2) * 12); in plus()
1389 case HALF_DAYS: return nanosUntil / (12 * NANOS_PER_HOUR); in until()
DLocalDateTime.java1186 …case HALF_DAYS: return plusDays(amountToAdd / 256).plusHours((amountToAdd % 256) * 12); // no ove… in plus()
1716 case HALF_DAYS: in until()
DOffsetTime.java1182 case HALF_DAYS: return nanosUntil / (12 * NANOS_PER_HOUR); in until()