/libcore/luni/src/test/java/libcore/java/time/ |
D | OffsetDateTimeTest.java | 44 ODT.plus(1, ChronoUnit.HOURS)); in test_plus() 46 ODT.plus(23, ChronoUnit.HOURS)); in test_plus() 60 ODT.minus(1, ChronoUnit.HOURS)); in test_minus_utc_offset() 62 ODT.minus(23, ChronoUnit.HOURS)); in test_minus_utc_offset() 80 odt.minus(1, ChronoUnit.HOURS)); in test_minus_non_utc_offset() 82 odt.minus(23, ChronoUnit.HOURS)); in test_minus_non_utc_offset()
|
D | OffsetTimeTest.java | 46 NOON_UTC.plus(1, ChronoUnit.HOURS)); in test_plus() 48 NOON_UTC.plus(23, ChronoUnit.HOURS)); in test_plus() 63 assertPlusIsNoop(24, ChronoUnit.HOURS); in test_plus_noop()
|
D | InstantTest.java | 41 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.HOURS)); in test_isSupported_TemporalUnit()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TimeUnitTest.java | 12 import static java.util.concurrent.TimeUnit.HOURS; 46 SECONDS.convert(t, HOURS)); in testConvert() 61 MILLISECONDS.convert(t, HOURS)); in testConvert() 76 MICROSECONDS.convert(t, HOURS)); in testConvert() 91 NANOSECONDS.convert(t, HOURS)); in testConvert() 114 HOURS.toNanos(t)); in testToNanos() 137 HOURS.toMicros(t)); in testToMicros() 160 HOURS.toMillis(t)); in testToMillis() 183 HOURS.toSeconds(t)); in testToSeconds() 206 HOURS.toMinutes(t)); in testToMinutes() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | TimeUnit8Test.java | 37 import static java.util.concurrent.TimeUnit.HOURS; 72 assertSame(ChronoUnit.HOURS, HOURS.toChronoUnit()); in testToChronoUnit() 89 assertSame(HOURS, TimeUnit.of(ChronoUnit.HOURS)); in testTimeUnitOf() 124 assertEquals(n, HOURS.convert(Duration.ofHours(n))); in testConvertDuration_roundtripDurationOf() 125 assertEquals(n, HOURS.convert(Duration.of(n, ChronoUnit.HOURS))); in testConvertDuration_roundtripDurationOf()
|
D | TimeUnitTest.java | 38 import static java.util.concurrent.TimeUnit.HOURS; 70 SECONDS.convert(t, HOURS)); in testConvert() 85 MILLISECONDS.convert(t, HOURS)); in testConvert() 100 MICROSECONDS.convert(t, HOURS)); in testConvert() 115 NANOSECONDS.convert(t, HOURS)); in testConvert() 147 HOURS.toNanos(t)); in testToNanos() 170 HOURS.toMicros(t)); in testToMicros() 193 HOURS.toMillis(t)); in testToMillis() 216 HOURS.toSeconds(t)); in testToSeconds() 239 HOURS.toMinutes(t)); in testToMinutes() [all …]
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 74 import static java.time.temporal.ChronoUnit.HOURS; 259 MINUTE_OF_HOUR("MinuteOfHour", MINUTES, HOURS, ValueRange.of(0, 59), "minute"), 286 HOUR_OF_AMPM("HourOfAmPm", HOURS, HALF_DAYS, ValueRange.of(0, 11)), 302 CLOCK_HOUR_OF_AMPM("ClockHourOfAmPm", HOURS, HALF_DAYS, ValueRange.of(1, 12)), 319 HOUR_OF_DAY("HourOfDay", HOURS, DAYS, ValueRange.of(0, 23), "hour"), 335 CLOCK_HOUR_OF_DAY("ClockHourOfDay", HOURS, DAYS, ValueRange.of(1, 24)),
|
D | ChronoUnit.java | 109 HOURS("Hours", Duration.ofSeconds(3600)), enumConstant
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | TimeUnit.java | 101 HOURS(TimeUnit.HOUR_SCALE), enumConstant 463 case HOURS: return ChronoUnit.HOURS; in toChronoUnit() 486 case HOURS: return TimeUnit.HOURS; in of()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoUnit.java | 65 import static java.time.temporal.ChronoUnit.HOURS; 112 {HOURS, false, true, false}, in data_chronoUnit() 143 {HOURS, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(2, 2, 3, 400)}, in data_unitAndTemporal() 158 {HOURS, LocalDate.of(2000, 2, 29), false, 1, null}, in data_unitAndTemporal()
|
D | TCKChronoField.java | 89 import static java.time.temporal.ChronoUnit.HOURS; 130 {HOUR_OF_DAY, HOURS, DAYS}, in data_fieldUnit() 132 {MINUTE_OF_HOUR, MINUTES, HOURS}, in data_fieldUnit()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalTime.java | 143 private static final LocalTime[] HOURS = new LocalTime[24]; field in LocalTime 145 for (int i = 0; i < HOURS.length; i++) { 146 HOURS[i] = new LocalTime(i, 0, 0, 0); 148 MIDNIGHT = HOURS[0]; 149 NOON = HOURS[12]; 150 MIN = HOURS[0]; 294 return HOURS[hour]; // for performance in of() 315 return HOURS[hour]; // for performance in of() 476 return HOURS[hour]; in create() 1069 case HOURS: return plusHours(amountToAdd); in plus() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoUnitSerialization.java | 65 import static java.time.temporal.ChronoUnit.HOURS; 107 {HOURS}, in data_chronoUnit()
|
/libcore/luni/src/test/java/libcore/javax/xml/datatype/ |
D | DurationImpl.java | 56 fields.put(DatatypeConstants.HOURS, h); in DurationImpl() 72 if (h >= 0) { fields.put(DatatypeConstants.HOURS, h); } in DurationImpl()
|
D | DatatypeConstantsTest.java | 27 assertEquals(3, DatatypeConstants.HOURS.getId()); in testField_getId()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | Duration.java | 161 boolean hourSet = isSet(DatatypeConstants.HOURS); in getXMLSchemaType() 270 return getFieldValueAsInt(DatatypeConstants.HOURS); in getHours() 907 BigInteger hours = (BigInteger) getField(DatatypeConstants.HOURS); in toString()
|
D | DatatypeConstants.java | 144 public static final Field HOURS = new Field("HOURS", 3); field in DatatypeConstants
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneOffsetTransition.java | 62 import static java.time.temporal.ChronoUnit.HOURS; 129 assertEquals(test.getDuration(), Duration.of(1, HOURS)); in test_getters_gap() 144 assertEquals(test.getDuration(), Duration.of(-1, HOURS)); in test_getters_overlap()
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | FileTimeTest.java | 84 cmp(Instant.MIN, Long.MIN_VALUE, HOURS, 1); in main() 92 cmp(Instant.MAX, Long.MAX_VALUE, HOURS, -1); in main() 182 ts(1L, HOURS, "1970-01-01T01:00:00Z"); in main() 192 ts(-1L, HOURS, "1969-12-31T23:00:00Z"); in main()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKInstant.java | 67 import static java.time.temporal.ChronoUnit.HOURS; 636 …{Instant.ofEpochSecond(86400 + 3600 + 60 + 1, 123_456_789), HOURS, Instant.ofEpochSecond(86400 + 3… 682 {HOURS, MockSimplePeriod.of(2, HOURS), 7201, 0}, 687 {HOURS, MockSimplePeriod.of(11, HOURS), 39601, 0}, 1797 {0, 0, -3600, 0, HOURS, -1L}, 1798 {0, 0, -1, 999_999_999, HOURS, 0L}, 1799 {0, 0, 3599, 0, HOURS, 0L}, 1800 {0, 0, 3599, 999_999_999, HOURS, 0L}, 1801 {0, 0, 3600, 0, HOURS, 1L}, 1802 {0, 0, 3601, 0, HOURS, 1L}, [all …]
|
D | TCKDuration.java | 64 import static java.time.temporal.ChronoUnit.HOURS; 344 {0, HOURS, 0, 0}, in provider_factory_of_longTemporalUnit() 352 {1, HOURS, 3600, 0}, in provider_factory_of_longTemporalUnit() 360 {3, HOURS, 3 * 3600, 0}, in provider_factory_of_longTemporalUnit() 368 {-1, HOURS, -3600, 0}, in provider_factory_of_longTemporalUnit() 376 {-3, HOURS, -3 * 3600, 0}, in provider_factory_of_longTemporalUnit() 389 {Long.MAX_VALUE / 3600, HOURS, (Long.MAX_VALUE / 3600) * 3600, 0}, in provider_factory_of_longTemporalUnit() 390 {Long.MIN_VALUE / 3600, HOURS, (Long.MIN_VALUE / 3600) * 3600, 0}, in provider_factory_of_longTemporalUnit() 408 {Long.MAX_VALUE / 3600 + 1, HOURS}, in provider_factory_of_longTemporalUnit_outOfRange() 409 {Long.MIN_VALUE / 3600 - 1, HOURS}, in provider_factory_of_longTemporalUnit_outOfRange() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/ |
D | TCKZoneOffsetTransitionSerialization.java | 62 import static java.time.temporal.ChronoUnit.HOURS;
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseDateTest.java | 74 JapaneseDate.now().minus(1, ChronoUnit.HOURS); in minus_less_than_day_throwsUnsupportedTemporalTypeException()
|
D | HijrahDateTest.java | 115 hijrahNow.until(isoNow, ChronoUnit.HOURS); in until_isoDates_unsupportedTypes()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronoPeriod.java | 60 import static java.time.temporal.ChronoUnit.HOURS; 130 period.get(HOURS); in test_get_unsupported()
|