/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/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
|
D | IsoFields.java | 705 public long between(Temporal temporal1Inclusive, Temporal temporal2Exclusive) { in between() method in IsoFields.Unit
|
/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 | 396 return unit.between(this, end); in until()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKDuration.java | 778 Duration t = Duration.between(start, end); in factory_between_TemporalTemporal_Instant() 787 assertEquals(Duration.between(end, start), Duration.between(start, end).negated()); in factory_between_TemporalTemporal_Instant_negated() 800 Duration t = Duration.between(start, end); in factory_between_TemporalTemporal_LT() 807 assertEquals(Duration.between(end, start), Duration.between(start, end).negated()); in factory_between_TemporalTemporal_LT_negated() 839 Duration t = Duration.between(start, end); in factory_between_TemporalTemporal_LDT() 846 assertEquals(Duration.between(end, start), Duration.between(start, end).negated()); in factory_between_TemporalTemporal_LDT_negated() 853 assertEquals(Duration.between(start, end), Duration.ofSeconds(3)); in factory_between_TemporalTemporal_mixedTypes() 860 Duration.between(start, end); in factory_between_TemporalTemporal_invalidMixedTypes() 866 Duration.between(null, end); in factory_between__TemporalTemporal_startNull() 872 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/ |
D | hijrah-config-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 | 305 return unit.between(this, end); in until()
|
D | TCKChronoLocalDate.java | 414 public long between(Temporal temporal1, Temporal temporal2) { in between() method in TCKChronoLocalDate.FixedTemporalUnit
|
D | TCKChronoLocalDateTime.java | 435 public long between(Temporal temporal1, Temporal temporal2) { in between() method in TCKChronoLocalDateTime.FixedTemporalUnit
|
D | TCKChronoZonedDateTime.java | 436 public long between(Temporal temporal1, Temporal temporal2) { in between() method in TCKChronoZonedDateTime.FixedTemporalUnit
|
/libcore/ojluni/src/main/java/java/time/ |
D | Year.java | 920 return unit.between(this, end); in until()
|
D | Period.java | 379 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 | 1153 return unit.between(this, end); in until()
|
D | OffsetTime.java | 1186 return unit.between(this, end); in until()
|