Home
last modified time | relevance | path

Searched refs:amountToSubtract (Results 1 – 21 of 21) sorted by relevance

/libcore/ojluni/src/main/java/java/time/temporal/
DTemporal.java369 default Temporal minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
370 …return (amountToSubtract == Long.MIN_VALUE ? plus(Long.MAX_VALUE, unit).plus(1, unit) : plus(-amou… in minus()
/libcore/ojluni/src/main/java/java/time/
DYear.java754 public Year minus(TemporalAmount amountToSubtract) { in minus() argument
755 return (Year) amountToSubtract.subtractFrom(this); in minus()
778 public Year minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
779 …return (amountToSubtract == Long.MIN_VALUE ? plus(Long.MAX_VALUE, unit).plus(1, unit) : plus(-amou… in minus()
DZonedDateTime.java1798 public ZonedDateTime minus(TemporalAmount amountToSubtract) { in minus() argument
1799 if (amountToSubtract instanceof Period) { in minus()
1800 Period periodToSubtract = (Period) amountToSubtract; in minus()
1803 Objects.requireNonNull(amountToSubtract, "amountToSubtract"); in minus()
1804 return (ZonedDateTime) amountToSubtract.subtractFrom(this); in minus()
1841 public ZonedDateTime minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
1842 …return (amountToSubtract == Long.MIN_VALUE ? plus(Long.MAX_VALUE, unit).plus(1, unit) : plus(-amou… in minus()
DLocalDateTime.java1359 public LocalDateTime minus(TemporalAmount amountToSubtract) { in minus() argument
1360 if (amountToSubtract instanceof Period) { in minus()
1361 Period periodToSubtract = (Period) amountToSubtract; in minus()
1364 Objects.requireNonNull(amountToSubtract, "amountToSubtract"); in minus()
1365 return (LocalDateTime) amountToSubtract.subtractFrom(this); in minus()
1388 public LocalDateTime minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
1389 …return (amountToSubtract == Long.MIN_VALUE ? plus(Long.MAX_VALUE, unit).plus(1, unit) : plus(-amou… in minus()
DYearMonth.java873 public YearMonth minus(TemporalAmount amountToSubtract) { in minus() argument
874 return (YearMonth) amountToSubtract.subtractFrom(this); in minus()
897 public YearMonth minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
898 …return (amountToSubtract == Long.MIN_VALUE ? plus(Long.MAX_VALUE, unit).plus(1, unit) : plus(-amou… in minus()
DLocalDate.java1370 public LocalDate minus(TemporalAmount amountToSubtract) { in minus() argument
1371 if (amountToSubtract instanceof Period) { in minus()
1372 Period periodToSubtract = (Period) amountToSubtract; in minus()
1375 Objects.requireNonNull(amountToSubtract, "amountToSubtract"); in minus()
1376 return (LocalDate) amountToSubtract.subtractFrom(this); in minus()
1399 public LocalDate minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
1400 …return (amountToSubtract == Long.MIN_VALUE ? plus(Long.MAX_VALUE, unit).plus(1, unit) : plus(-amou… in minus()
DInstant.java948 public Instant minus(TemporalAmount amountToSubtract) { in minus() argument
949 return (Instant) amountToSubtract.subtractFrom(this); in minus()
972 public Instant minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
973 …return (amountToSubtract == Long.MIN_VALUE ? plus(Long.MAX_VALUE, unit).plus(1, unit) : plus(-amou… in minus()
DOffsetTime.java962 public OffsetTime minus(TemporalAmount amountToSubtract) { in minus() argument
963 return (OffsetTime) amountToSubtract.subtractFrom(this); in minus()
986 public OffsetTime minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
987 …return (amountToSubtract == Long.MIN_VALUE ? plus(Long.MAX_VALUE, unit).plus(1, unit) : plus(-amou… in minus()
DOffsetDateTime.java1350 public OffsetDateTime minus(TemporalAmount amountToSubtract) { in minus() argument
1351 return (OffsetDateTime) amountToSubtract.subtractFrom(this); in minus()
1374 public OffsetDateTime minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
1375 …return (amountToSubtract == Long.MIN_VALUE ? plus(Long.MAX_VALUE, unit).plus(1, unit) : plus(-amou… in minus()
DLocalTime.java1198 public LocalTime minus(TemporalAmount amountToSubtract) { in minus() argument
1199 return (LocalTime) amountToSubtract.subtractFrom(this); in minus()
1222 public LocalTime minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
1223 …return (amountToSubtract == Long.MIN_VALUE ? plus(Long.MAX_VALUE, unit).plus(1, unit) : plus(-amou… in minus()
DDuration.java852 public Duration minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
853 …return (amountToSubtract == Long.MIN_VALUE ? plus(Long.MAX_VALUE, unit).plus(1, unit) : plus(-amou… in minus()
DPeriod.java708 public Period minus(TemporalAmount amountToSubtract) { in minus() argument
709 Period isoAmount = Period.from(amountToSubtract); in minus()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java482 default ChronoLocalDate minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
483 …urn ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.minus(amountToSubtract, unit)); in minus()
DChronoPeriod.java224 ChronoPeriod minus(TemporalAmount amountToSubtract); in minus() argument
DChronoLocalDateTime.java311 default ChronoLocalDateTime<D> minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
312 …ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amountToSubtract, unit)); in minus()
DChronoLocalDateImpl.java224 public D minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
225 return (D) ChronoLocalDate.super.minus(amountToSubtract, unit); in minus()
DChronoZonedDateTime.java458 default ChronoZonedDateTime<D> minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
459 …ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amountToSubtract, unit)); in minus()
DChronoPeriodImpl.java186 public ChronoPeriod minus(TemporalAmount amountToSubtract) { in minus() argument
187 ChronoPeriodImpl amount = validateAmount(amountToSubtract); in minus()
DHijrahDate.java556 public HijrahDate minus(long amountToSubtract, TemporalUnit unit) { in minus() argument
557 return super.minus(amountToSubtract, unit); in minus()
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java313 public java.time.OffsetDateTime minus(java.time.temporal.TemporalAmount amountToSubtract) { in minus() argument
318 long amountToSubtract, java.time.temporal.TemporalUnit unit) { in minus() argument
DDuration.java221 public java.time.Duration minus(long amountToSubtract, java.time.temporal.TemporalUnit unit) { in minus() argument