Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/libcore/java/time/chrono/
DHijrahDateTest.java94 assertEquals(0, hijrahNow.until(isoNow, ChronoUnit.DAYS)); in until_isoDates()
95 assertEquals(0, hijrahNow.until(isoNow.atTime(10, 10), ChronoUnit.DAYS)); in until_isoDates()
104 assertEquals(-1, hijrahTomorrow.until(hijrahNow, ChronoUnit.DAYS)); in until_hijrahDates()
105 assertEquals(1, hijrahNow.until(HijrahDate.of(1442, 11, 14), ChronoUnit.MONTHS)); in until_hijrahDates()
115 hijrahNow.until(isoNow, ChronoUnit.HOURS); in until_isoDates_unsupportedTypes()
122 hijrahNow.until(Year.of(2021), ChronoUnit.YEARS); in until_isoDates_unsupportedTypes()
129 hijrahNow.until(Instant.ofEpochSecond(1622113481L), ChronoUnit.DAYS); in until_isoDates_unsupportedTypes()
DChronoZonedDateTimeTest.java115 public long until(Temporal endExclusive, TemporalUnit unit) { in until() method in ChronoZonedDateTimeTest.TestChronoZonedDateTime
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporal.java447 long until(Temporal endExclusive, TemporalUnit unit); in until() method
DChronoUnit.java272 return temporal1Inclusive.until(temporal2Exclusive, this); in between()
DIsoFields.java707 return temporal1Inclusive.until(temporal2Exclusive, this); in between()
714 return temporal1Inclusive.until(temporal2Exclusive, MONTHS) / 3; in between()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java300 public long until(Temporal endExclusive, TemporalUnit unit) { in until() method in CopticDate
303 return LocalDate.from(this).until(end, unit); // TODO: this is wrong in until()
309 public Period until(ChronoLocalDate endDate) { in until() method in CopticDate
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java598 long until(Temporal endExclusive, TemporalUnit unit); in until() method
621 ChronoPeriod until(ChronoLocalDate endDateExclusive); in until() method
DChronoPeriod.java119 return startDateInclusive.until(endDateExclusive); in between()
DChronoLocalDateTimeImpl.java371 public long until(Temporal endExclusive, TemporalUnit unit) { in until() method in ChronoLocalDateTimeImpl
387 return Math.addExact(amount, time.until(end.toLocalTime(), unit)); in until()
393 return date.until(endDate, unit); in until()
DMinguoDate.java426 public ChronoPeriod until(ChronoLocalDate endDate) { in until() method in MinguoDate
427 Period period = isoDate.until(endDate); in until()
DThaiBuddhistDate.java426 public ChronoPeriod until(ChronoLocalDate endDate) { in until() method in ThaiBuddhistDate
427 Period period = isoDate.until(endDate); in until()
DChronoZonedDateTimeImpl.java310 public long until(Temporal endExclusive, TemporalUnit unit) { in until() method in ChronoZonedDateTimeImpl
316 return dateTime.until(end.toLocalDateTime(), unit); in until()
DJapaneseDate.java671 public ChronoPeriod until(ChronoLocalDate endDate) { in until() method in JapaneseDate
672 Period period = isoDate.until(endDate); in until()
DChronoLocalDateImpl.java376 public long until(Temporal endExclusive, TemporalUnit unit) { in until() method in ChronoLocalDateImpl
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZonedDateTime.java2009 assertEquals(base.until(end, DAYS), expected);
2014 assertEquals(base.until(end, HOURS), expected);
2019 assertEquals(base.until(end, MINUTES), expected * 60);
2024 assertEquals(base.until(end, SECONDS), expected * 3600);
2029 assertEquals(base.until(end, NANOS), expected * 3600_000_000_000L);
2039 assertEquals(midnightLondon.until(midnightParis1, HOURS), 23);
2040 assertEquals(midnightLondon.until(oneAm1, HOURS), 24);
2041 assertEquals(midnightLondon.until(midnightParis2, HOURS), 23 + 24);
2043 assertEquals(midnightLondon.until(midnightParis1, DAYS), 0);
2044 assertEquals(midnightLondon.until(oneAm1, DAYS), 1);
[all …]
DTCKYear.java926 long amount = year1.until(year2, unit); in test_until_TemporalUnit()
932 long amount = year2.until(year1, unit); in test_until_TemporalUnit_negated()
946 assertEquals(start.until(end, YEARS), 2); in test_until_convertedType()
952 start.until(LocalTime.of(11, 30), YEARS); in test_until_invalidType()
957 TEST_2008.until(TEST_2008, MONTHS); in test_until_TemporalUnit_unsupportedUnit()
962 TEST_2008.until(null, DAYS); in test_until_TemporalUnit_nullEnd()
967 TEST_2008.until(TEST_2008, null); in test_until_TemporalUnit_nullUnit()
DTCKLocalDate.java1731 long amount = date1.until(date2, unit);
1737 long amount = date2.until(date1, unit);
1751 assertEquals(start.until(end, DAYS), 2);
1757 start.until(LocalTime.of(11, 30), DAYS);
1762 TEST_2007_07_15.until(TEST_2007_07_15, HOURS);
1767 TEST_2007_07_15.until(null, DAYS);
1772 TEST_2007_07_15.until(TEST_2007_07_15, null);
1869 Period test = start.until(end);
1878 assertEquals(LocalDate.MIN.until(LocalDate.MAX), Period.of(years, 11, 30));
1883 TEST_2007_07_15.until(null);
DTCKInstant.java1811 long amount = i1.until(i2, unit);
1819 long amount = i2.until(i1, unit);
1835 assertEquals(start.until(end, SECONDS), 2);
1841 start.until(LocalTime.of(11, 30), SECONDS);
1846 TEST_12345_123456789.until(TEST_12345_123456789, MONTHS);
1851 TEST_12345_123456789.until(null, HOURS);
1856 TEST_12345_123456789.until(TEST_12345_123456789, null);
DTCKYearMonth.java1250 long amount = ym1.until(ym2, unit); in test_until_TemporalUnit()
1256 long amount = ym2.until(ym1, unit); in test_until_TemporalUnit_negated()
1270 assertEquals(start.until(end, MONTHS), 2); in test_until_convertedType()
1276 start.until(LocalTime.of(11, 30), MONTHS); in test_until_invalidType()
1281 TEST_2008_06.until(TEST_2008_06, HOURS); in test_until_TemporalUnit_unsupportedUnit()
1286 TEST_2008_06.until(null, DAYS); in test_until_TemporalUnit_nullEnd()
1291 TEST_2008_06.until(TEST_2008_06, null); in test_until_TemporalUnit_nullUnit()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DOCSPResponse.java602 String until = ""; in verify() local
604 until = " until " + sr.nextUpdate; in verify()
607 sr.thisUpdate + until); in verify()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestUmmAlQuraChronology.java326 assertEquals(from.until(to, ChronoUnit.DAYS), days); in test_diffBetweenDates()
327 assertEquals(from.until(to, ChronoUnit.MONTHS), months); in test_diffBetweenDates()
328 assertEquals(from.until(to, ChronoUnit.YEARS), years); in test_diffBetweenDates()
346 ChronoPeriod period = h1.until(h2); in test_until()
354 ChronoPeriod period = h1.until(m); in test_periodUntilDiffChrono()
/libcore/ojluni/src/main/java/java/time/
DZonedDateTime.java2112 public long until(Temporal endExclusive, TemporalUnit unit) { in until() method in ZonedDateTime
2117 return dateTime.until(end.dateTime, unit); in until()
2119 return toOffsetDateTime().until(end.toOffsetDateTime(), unit); in until()
DLocalDateTime.java1676 public long until(Temporal endExclusive, TemporalUnit unit) { in until() method in LocalDateTime
1682 return time.until(end.time, unit); in until()
1729 return date.until(endDate, unit); in until()
DDuration.java469 return ofNanos(startInclusive.until(endExclusive, NANOS)); in between()
471 long secs = startInclusive.until(endExclusive, SECONDS); in between()
/libcore/ojluni/annotations/
DREADME31 check in this change, it will have undesirable consequences until you

12