/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestChronoUnit.java | 109 assertEquals(YEARS.between(start, end), expected); in test_yearsBetween() 114 assertEquals(YEARS.between(end, start), -expected); in test_yearsBetweenReversed() 119 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 30)), expected); in test_yearsBetween_LocalDateTimeSameTime() 125 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 31)), expected); in test_yearsBetween_LocalDateTimeLaterTime() 127 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 29)), expected); in test_yearsBetween_LocalDateTimeLaterTime() 133 …assertEquals(YEARS.between(start.atStartOfDay(ZoneOffset.ofHours(2)), end.atStartOfDay(ZoneOffset.… in test_yearsBetween_ZonedDateSameOffset() 140 …assertEquals(YEARS.between(start.atStartOfDay(ZoneOffset.ofHours(2)), end.atStartOfDay(ZoneOffset.… in test_yearsBetween_ZonedDateLaterOffset() 142 …assertEquals(YEARS.between(start.atStartOfDay(ZoneOffset.ofHours(1)), end.atStartOfDay(ZoneOffset.… in test_yearsBetween_ZonedDateLaterOffset() 182 assertEquals(MONTHS.between(start, end), expected); in test_monthsBetween() 187 assertEquals(MONTHS.between(end, start), -expected); in test_monthsBetweenReversed() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ChronoPeriodTest.java | 40 ChronoPeriod.between(null, null); in between_withNull_throwsNpe() 47 ChronoPeriod.between(null, LocalDate.now()); in between_withNull_throwsNpe() 54 ChronoPeriod.between(LocalDate.now(), null); in between_withNull_throwsNpe() 66 assertEquals(Period.ofDays(1), ChronoPeriod.between(now, tomorrow)); in between_nonNull() 68 ChronoPeriod.between(HijrahDate.of(1442, 9, 10), HijrahDate.of(1442, 9, 12))); in between_nonNull() 76 assertEquals(Period.ofDays(1), ChronoPeriod.between(isoNow, hijrahTomorrow)); in between_differentInterfaceImplementations() 78 ChronoPeriod.between(hijrahTomorrow, isoNow)); in between_differentInterfaceImplementations()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | DurationTest.java | 54 Duration.between(Instant.EPOCH, Instant.MAX).addTo(Instant.EPOCH)); in test_addTo() 56 Duration.between(Instant.MIN, Instant.MAX).addTo(Instant.MIN)); in test_addTo() 58 Duration.between(Instant.MIN, Instant.EPOCH).addTo(Instant.MIN)); in test_addTo() 65 Duration.between(Instant.MIN, Instant.EPOCH).subtractFrom(Instant.EPOCH)); in test_subtractFrom() 67 Duration.between(Instant.MIN, Instant.MAX).subtractFrom(Instant.MAX)); in test_subtractFrom() 69 Duration.between(Instant.EPOCH, Instant.MAX).subtractFrom(Instant.MAX)); in test_subtractFrom() 75 { Instant.EPOCH, Duration.between(Instant.EPOCH, Instant.MAX).plusNanos(1) }, in test_addTo_exceeds() 77 { Instant.EPOCH, Duration.between(Instant.EPOCH, Instant.MIN).minusNanos(1) }, in test_addTo_exceeds() 78 { Instant.EPOCH, Duration.between(Instant.MIN, Instant.MAX) }, in test_addTo_exceeds() 102 { Instant.EPOCH, Duration.between(Instant.MIN, Instant.EPOCH).plusNanos(1) }, in test_subtractFrom_exceeds() [all …]
|
/libcore/ojluni/src/main/ |
D | NOTICE | 18 Agreement between IBM and Sun. This technology is protected by multiple * 30 Agreement between IBM and Sun. This technology is protected by multiple * 42 Agreement between IBM and Sun. This technology is protected by multiple * 105 Agreement between IBM and Sun. This technology is protected by multiple * 121 under terms of a License Agreement between IBM and Sun. 133 Agreement between Taligent and Sun. This technology is protected 146 materials are provided under terms of a License Agreement between Taligent 158 materials are provided under terms of a License Agreement between Taligent 170 materials are provided under terms of a License Agreement between Taligent 183 of a License Agreement between Taligent and Sun. This technology [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | HexFormat.java | 415 String between = suffix + delimiter + prefix; in formatHex() local 418 if (between.isEmpty()) { in formatHex() 424 out.append(between); in formatHex() 570 String between = suffix + delimiter + prefix; in parseHex() local 574 for (i = 0, offset = prefix.length(); i < len - 1; i++, offset += 2 + between.length()) { in parseHex() 576 checkLiteral(string, offset + 2, between); in parseHex()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestZonedDateTime.java | 92 assertEquals(Duration.between(start, end), Duration.ofHours(17)); in test_duration()
|
D | TestOffsetDateTime.java | 332 assertEquals(Duration.between(start, end), Duration.ofHours(1)); in test_duration()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalUnit.java | 284 long between(Temporal temporal1Inclusive, Temporal temporal2Exclusive); in between() method
|
D | ChronoUnit.java | 271 public long between(Temporal temporal1Inclusive, Temporal temporal2Exclusive) { in between() method in ChronoUnit
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoPeriod.java | 116 …public static ChronoPeriod between(ChronoLocalDate startDateInclusive, ChronoLocalDate endDateExcl… in between() method
|
D | ChronoLocalDateImpl.java | 393 return unit.between(this, end); in until()
|
D | ChronoZonedDateTimeImpl.java | 319 return unit.between(this, end); in until()
|
D | ChronoLocalDateTimeImpl.java | 391 return unit.between(this, end); in until()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKDuration.java | 803 Duration t = Duration.between(start, end); in factory_between_TemporalTemporal_Instant() 812 assertEquals(Duration.between(end, start), Duration.between(start, end).negated()); in factory_between_TemporalTemporal_Instant_negated() 825 Duration t = Duration.between(start, end); in factory_between_TemporalTemporal_LT() 832 assertEquals(Duration.between(end, start), Duration.between(start, end).negated()); in factory_between_TemporalTemporal_LT_negated() 864 Duration t = Duration.between(start, end); in factory_between_TemporalTemporal_LDT() 871 assertEquals(Duration.between(end, start), Duration.between(start, end).negated()); in factory_between_TemporalTemporal_LDT_negated() 878 assertEquals(Duration.between(start, end), Duration.ofSeconds(3)); in factory_between_TemporalTemporal_mixedTypes() 885 Duration.between(start, end); in factory_between_TemporalTemporal_invalidMixedTypes() 891 Duration.between(null, end); in factory_between__TemporalTemporal_startNull() 897 Duration.between(start, null); in factory_between__TemporalTemporal_endNull() [all …]
|
D | TCKPeriod.java | 529 Period test = Period.between(start, end); in factory_between_LocalDate() 536 Period.between((LocalDate) null, LocalDate.of(2010, 1, 1)); in factory_between_LocalDate_nullFirst() 541 Period.between(LocalDate.of(2010, 1, 1), (LocalDate) null); in factory_between_LocalDate_nullSecond()
|
/libcore/expectations/ |
D | virtualdeviceknownfailures.txt | 41 description: "Kernels between 4.4 and 4.9 interpret the backlog parameter differently than we
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoUnit.java | 174 assertEquals(unit.between(base, result), amount); in test_unitAndTemporal()
|
/libcore/ojluni/src/main/resources/java/time/chrono/ |
D | hijrah-config-Hijrah-umalqura_islamic-umalqura.properties | 53 # * There must be one or more space characters between the months.
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | Duration.java | 140 public static java.time.Duration between( in between() method in Duration
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 306 return unit.between(this, end); in until()
|
D | TCKChronoLocalDate.java | 414 public long between(Temporal temporal1, Temporal temporal2) { in between() method in TCKChronoLocalDate.FixedTemporalUnit
|
/libcore/ojluni/src/main/java/java/time/ |
D | Year.java | 920 return unit.between(this, end); in until()
|
D | Period.java | 381 public static Period between(LocalDate startDateInclusive, LocalDate endDateExclusive) { in between() method in Period
|
D | YearMonth.java | 1053 return unit.between(this, end); in until()
|
D | Instant.java | 1151 return unit.between(this, end); in until()
|