Searched defs:until (Results 1 - 19 of 19) sorted by relevance

/libcore/ojluni/src/main/java/java/time/temporal/
H A DTemporal.java375 * Calculates the amount of time until another temporal in terms of the specified unit.
383 * calculated using {@code startTime.until(endTime, HOURS)}.
395 * temporal = start.until(end, unit);
403 * long daysBetween = start.until(end, DAYS);
447 long until(Temporal endExclusive, TemporalUnit unit); method in interface:Temporal
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
H A DCopticDate.java300 public long until(Temporal endExclusive, TemporalUnit unit) { method in class:CopticDate
303 return LocalDate.from(this).until(end, unit); // TODO: this is wrong
309 public Period until(ChronoLocalDate endDate) { method in class:CopticDate
/libcore/ojluni/src/main/java/java/time/chrono/
H A DChronoLocalDate.java552 * Calculates the amount of time until another date in terms of the specified unit.
563 * using {@code startDate.until(endDate, DAYS)}.
570 * amount = start.until(end, MONTHS);
598 long until(Temporal endExclusive, TemporalUnit unit); method in interface:ChronoLocalDate
621 ChronoPeriod until(ChronoLocalDate endDateExclusive); method in interface:ChronoLocalDate
H A DChronoLocalDateImpl.java376 public long until(Temporal endExclusive, TemporalUnit unit) { method in class:ChronoLocalDateImpl
H A DChronoLocalDateTimeImpl.java371 public long until(Temporal endExclusive, TemporalUnit unit) { method in class:ChronoLocalDateTimeImpl
387 return Math.addExact(amount, time.until(end.toLocalTime(), unit));
393 return date.until(endDate, unit);
H A DChronoZonedDateTimeImpl.java310 public long until(Temporal endExclusive, TemporalUnit unit) { method in class:ChronoZonedDateTimeImpl
316 return dateTime.until(end.toLocalDateTime(), unit);
H A DMinguoDate.java426 public ChronoPeriod until(ChronoLocalDate endDate) { method in class:MinguoDate
427 Period period = isoDate.until(endDate);
H A DThaiBuddhistDate.java426 public ChronoPeriod until(ChronoLocalDate endDate) { method in class:ThaiBuddhistDate
427 Period period = isoDate.until(endDate);
H A DHijrahDate.java587 public ChronoPeriod until(ChronoLocalDate endDate) { method in class:HijrahDate
H A DJapaneseDate.java671 public ChronoPeriod until(ChronoLocalDate endDate) { method in class:JapaneseDate
672 Period period = isoDate.until(endDate);
/libcore/ojluni/src/main/java/java/time/
H A DInstant.java166 * For the segment from 1972-11-03 (exact boundary discussed below) until
1093 * Calculates the amount of time until another instant in terms of the specified unit.
1104 * using {@code startInstant.until(endInstant, SECONDS)}.
1111 * amount = start.until(end, SECONDS);
1137 public long until(Temporal endExclusive, TemporalUnit unit) { method in class:Instant
H A DYear.java108 * modern Gregorian/ISO rules until 1920.
860 * Calculates the amount of time until another year in terms of the specified unit.
869 * using {@code startYear.until(endYear, DECADES)}.
881 * amount = start.until(end, YEARS);
907 public long until(Temporal endExclusive, TemporalUnit unit) { method in class:Year
H A DYearMonth.java992 * Calculates the amount of time until another year-month in terms of the specified unit.
1001 * using {@code startYearMonth.until(endYearMonth, YEARS)}.
1013 * amount = start.until(end, MONTHS);
1039 public long until(Temporal endExclusive, TemporalUnit unit) { method in class:YearMonth
H A DLocalDate.java1548 * Calculates the amount of time until another date in terms of the specified unit.
1557 * using {@code startDate.until(endDate, DAYS)}.
1569 * amount = start.until(end, MONTHS);
1595 public long until(Temporal endExclusive, TemporalUnit unit) { method in class:LocalDate
1647 * period = start.until(end);
1656 public Period until(ChronoLocalDate endDateExclusive) { method in class:LocalDate
H A DLocalTime.java1331 * Calculates the amount of time until another time in terms of the specified unit.
1340 * using {@code startTime.until(endTime, HOURS)}.
1352 * amount = start.until(end, MINUTES);
1378 public long until(Temporal endExclusive, TemporalUnit unit) { method in class:LocalTime
H A DOffsetTime.java1121 * Calculates the amount of time until another time in terms of the specified unit.
1128 * using {@code startTime.until(endTime, HOURS)}.
1145 * amount = start.until(end, MINUTES);
1171 public long until(Temporal endExclusive, TemporalUnit unit) { method in class:OffsetTime
H A DLocalDateTime.java1627 * Calculates the amount of time until another date-time in terms of the specified unit.
1636 * using {@code startDateTime.until(endDateTime, DAYS)}.
1648 * amount = start.until(end, MONTHS);
1676 public long until(Temporal endExclusive, TemporalUnit unit) { method in class:LocalDateTime
1682 return time.until(end.time, unit);
1729 return date.until(endDate, unit);
H A DOffsetDateTime.java1596 * Calculates the amount of time until another date-time in terms of the specified unit.
1603 * using {@code startDateTime.until(endDateTime, DAYS)}.
1620 * amount = start.until(end, MONTHS);
1648 public long until(Temporal endExclusive, TemporalUnit unit) { method in class:OffsetDateTime
1652 return dateTime.until(end.dateTime, unit);
H A DZonedDateTime.java2046 * Calculates the amount of time until another date-time in terms of the specified unit.
2053 * using {@code startDateTime.until(endDateTime, DAYS)}.
2070 * amount = start.until(end, MONTHS);
2112 public long until(Temporal endExclusive, TemporalUnit unit) { method in class:ZonedDateTime
2117 return dateTime.until(end.dateTime, unit);
2119 return toOffsetDateTime().until(end.toOffsetDateTime(), unit);

Completed in 152 milliseconds