Home
last modified time | relevance | path

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

123

/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/
DNOTICE18 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/
DHexFormat.java415 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/
DTestZonedDateTime.java92 assertEquals(Duration.between(start, end), Duration.ofHours(17)); in test_duration()
DTestOffsetDateTime.java332 assertEquals(Duration.between(start, end), Duration.ofHours(1)); in test_duration()
/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
/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.java391 return unit.between(this, end); in until()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java803 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 …]
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/java/time/chrono/
Dhijrah-config-Hijrah-umalqura_islamic-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.java306 return unit.between(this, end); in until()
DTCKChronoLocalDate.java414 public long between(Temporal temporal1, Temporal temporal2) { in between() method in TCKChronoLocalDate.FixedTemporalUnit
/libcore/ojluni/src/main/java/java/time/
DYear.java920 return unit.between(this, end); in until()
DPeriod.java381 public static Period between(LocalDate startDateInclusive, LocalDate endDateExclusive) { in between() method in Period
DYearMonth.java1053 return unit.between(this, end); in until()
DInstant.java1151 return unit.between(this, end); in until()

123