Home
last modified time | relevance | path

Searched refs:between (Results 1 – 25 of 44) sorted by relevance

12

/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestChronoUnit.java109 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/
DChronoPeriodTest.java40 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/
DDurationTest.java54 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/
DTemporalUnit.java284 long between(Temporal temporal1Inclusive, Temporal temporal2Exclusive); in between() method
DChronoUnit.java271 public long between(Temporal temporal1Inclusive, Temporal temporal2Exclusive) { in between() method in ChronoUnit
DIsoFields.java705 public long between(Temporal temporal1Inclusive, Temporal temporal2Exclusive) { in between() method in IsoFields.Unit
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoPeriod.java116 …public static ChronoPeriod between(ChronoLocalDate startDateInclusive, ChronoLocalDate endDateExcl… in between() method
DChronoLocalDateImpl.java393 return unit.between(this, end); in until()
DChronoZonedDateTimeImpl.java319 return unit.between(this, end); in until()
DChronoLocalDateTimeImpl.java396 return unit.between(this, end); in until()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java778 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 …]
DTCKPeriod.java529 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/
Dvirtualdeviceknownfailures.txt41 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/
DTCKChronoUnit.java174 assertEquals(unit.between(base, result), amount); in test_unitAndTemporal()
/libcore/ojluni/src/main/resources/
Dhijrah-config-umalqura.properties53 # * There must be one or more space characters between the months.
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java140 public static java.time.Duration between( in between() method in Duration
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java305 return unit.between(this, end); in until()
DTCKChronoLocalDate.java414 public long between(Temporal temporal1, Temporal temporal2) { in between() method in TCKChronoLocalDate.FixedTemporalUnit
DTCKChronoLocalDateTime.java435 public long between(Temporal temporal1, Temporal temporal2) { in between() method in TCKChronoLocalDateTime.FixedTemporalUnit
DTCKChronoZonedDateTime.java436 public long between(Temporal temporal1, Temporal temporal2) { in between() method in TCKChronoZonedDateTime.FixedTemporalUnit
/libcore/ojluni/src/main/java/java/time/
DYear.java920 return unit.between(this, end); in until()
DPeriod.java379 public static Period between(LocalDate startDateInclusive, LocalDate endDateExclusive) { in between() method in Period
DYearMonth.java1053 return unit.between(this, end); in until()
DInstant.java1153 return unit.between(this, end); in until()
DOffsetTime.java1186 return unit.between(this, end); in until()

12