/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestChronoLocalDate.java | 89 dates.add(date.minus(10, ChronoUnit.YEARS)); in test_date_comparator_checkGenerics_ISO() 90 dates.add(date.minus(1, ChronoUnit.YEARS)); in test_date_comparator_checkGenerics_ISO() 91 dates.add(date.minus(1, ChronoUnit.MONTHS)); in test_date_comparator_checkGenerics_ISO() 92 dates.add(date.minus(1, ChronoUnit.WEEKS)); in test_date_comparator_checkGenerics_ISO() 93 dates.add(date.minus(1, ChronoUnit.DAYS)); in test_date_comparator_checkGenerics_ISO() 113 dates.add(date.minus(10, ChronoUnit.YEARS)); 114 dates.add(date.minus(1, ChronoUnit.YEARS)); 115 dates.add(date.minus(1, ChronoUnit.MONTHS)); 116 dates.add(date.minus(1, ChronoUnit.WEEKS)); 117 dates.add(date.minus(1, ChronoUnit.DAYS));
|
D | TestExampleCode.java | 110 .minus(1, ChronoUnit.DAYS); in test_chronoPackageExample() 163 .minus(1, ChronoUnit.DAYS); in test_calendarPackageExample()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronoLocalDateTime.java | 171 cdt.minus(adjuster); in test_badMinusAdjusterChrono() 179 ChronoLocalDateTime<?> result = cdt.minus(adjuster); in test_badMinusAdjusterChrono() 219 cdt.minus(1, adjuster); in test_badMinusTemporalUnitChrono() 227 ChronoLocalDateTime<?> result = cdt.minus(1, adjuster); in test_badMinusTemporalUnitChrono() 267 dates.add(date.minus(1, ChronoUnit.YEARS)); in test_datetime_comparisons() 268 dates.add(date.minus(1, ChronoUnit.MONTHS)); in test_datetime_comparisons() 269 dates.add(date.minus(1, ChronoUnit.WEEKS)); in test_datetime_comparisons() 270 dates.add(date.minus(1, ChronoUnit.DAYS)); in test_datetime_comparisons() 271 dates.add(date.minus(1, ChronoUnit.HOURS)); in test_datetime_comparisons() 272 dates.add(date.minus(1, ChronoUnit.MINUTES)); in test_datetime_comparisons() [all …]
|
D | TCKChronoZonedDateTime.java | 172 czdt.minus(adjuster); in test_badMinusAdjusterChrono() 180 ChronoZonedDateTime<?> result = czdt.minus(adjuster); in test_badMinusAdjusterChrono() 220 czdt.minus(1, adjuster); in test_badMinusTemporalUnitChrono() 228 ChronoZonedDateTime<?> result = czdt.minus(1, adjuster); in test_badMinusTemporalUnitChrono() 270 dates.add(date.minus(1, ChronoUnit.YEARS)); in test_zonedDateTime_comparisons() 271 dates.add(date.minus(1, ChronoUnit.MONTHS)); in test_zonedDateTime_comparisons() 272 dates.add(date.minus(1, ChronoUnit.WEEKS)); in test_zonedDateTime_comparisons() 273 dates.add(date.minus(1, ChronoUnit.DAYS)); in test_zonedDateTime_comparisons() 274 dates.add(date.minus(1, ChronoUnit.HOURS)); in test_zonedDateTime_comparisons() 275 dates.add(date.minus(1, ChronoUnit.MINUTES)); in test_zonedDateTime_comparisons() [all …]
|
D | TCKChronoLocalDate.java | 169 date.minus(adjuster); in test_badMinusAdjusterChrono() 176 ChronoLocalDate result = date.minus(adjuster); in test_badMinusAdjusterChrono() 216 date.minus(1, adjuster); in test_badMinusTemporalUnitChrono() 224 ChronoLocalDate result = date.minus(1, adjuster); in test_badMinusTemporalUnitChrono() 264 dates.add(date.minus(1, ChronoUnit.YEARS)); in test_date_comparisons() 265 dates.add(date.minus(1, ChronoUnit.MONTHS)); in test_date_comparisons() 266 dates.add(date.minus(1, ChronoUnit.WEEKS)); in test_date_comparisons() 267 dates.add(date.minus(1, ChronoUnit.DAYS)); in test_date_comparisons()
|
D | TCKChronoPeriod.java | 185 ChronoPeriod result = period.minus(period2); in test_minus() 195 period.minus(isoPeriod); in test_minus_wrongChrono() 196 period.minus(thaiPeriod); in test_minus_wrongChrono() 223 assertEquals(result, date.minus(14, MONTHS).minus(3, DAYS)); in test_subtractFrom()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | Temporal.java | 333 default Temporal minus(TemporalAmount amount) { in minus() method 369 default Temporal minus(long amountToSubtract, TemporalUnit unit) { in minus() method
|
D | TemporalAdjusters.java | 445 return temporal.minus(daysDiff >= 0 ? 7 - daysDiff : -daysDiff, DAYS); 474 return temporal.minus(daysDiff >= 0 ? 7 - daysDiff : -daysDiff, DAYS);
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoPeriodImpl.java | 186 public ChronoPeriod minus(TemporalAmount amountToSubtract) { in minus() method in ChronoPeriodImpl 288 temporal = temporal.minus(years, YEARS); in subtractFrom() 293 temporal = temporal.minus(years * monthRange + months, MONTHS); in subtractFrom() 296 temporal = temporal.minus(years, YEARS); in subtractFrom() 298 temporal = temporal.minus(months, MONTHS); in subtractFrom() 302 temporal = temporal.minus(days, DAYS); in subtractFrom()
|
D | ChronoLocalDate.java | 471 default ChronoLocalDate minus(TemporalAmount amount) { in minus() method 472 return ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.minus(amount)); in minus() 482 default ChronoLocalDate minus(long amountToSubtract, TemporalUnit unit) { in minus() method 483 …return ChronoLocalDateImpl.ensureValid(getChronology(), Temporal.super.minus(amountToSubtract, uni… in minus()
|
D | ChronoLocalDateTime.java | 301 default ChronoLocalDateTime<D> minus(TemporalAmount amount) { in minus() method 302 return ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amount)); in minus() 311 default ChronoLocalDateTime<D> minus(long amountToSubtract, TemporalUnit unit) { in minus() method 312 …return ChronoLocalDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amountToSubtract,… in minus()
|
D | ChronoLocalDateImpl.java | 218 public D minus(TemporalAmount amount) { in minus() method in ChronoLocalDateImpl 219 return (D) ChronoLocalDate.super.minus(amount); in minus() 224 public D minus(long amountToSubtract, TemporalUnit unit) { in minus() method in ChronoLocalDateImpl 225 return (D) ChronoLocalDate.super.minus(amountToSubtract, unit); in minus()
|
D | ChronoZonedDateTime.java | 448 default ChronoZonedDateTime<D> minus(TemporalAmount amount) { in minus() method 449 return ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amount)); in minus() 458 default ChronoZonedDateTime<D> minus(long amountToSubtract, TemporalUnit unit) { in minus() method 459 …return ChronoZonedDateTimeImpl.ensureValid(getChronology(), Temporal.super.minus(amountToSubtract,… in minus()
|
D | ThaiBuddhistDate.java | 360 public ThaiBuddhistDate minus(TemporalAmount amount) { in minus() method in ThaiBuddhistDate 361 return super.minus(amount); in minus() 391 public ThaiBuddhistDate minus(long amountToAdd, TemporalUnit unit) { in minus() method in ThaiBuddhistDate 392 return super.minus(amountToAdd, unit); in minus()
|
D | MinguoDate.java | 360 public MinguoDate minus(TemporalAmount amount) { in minus() method in MinguoDate 361 return super.minus(amount); in minus() 391 public MinguoDate minus(long amountToAdd, TemporalUnit unit) { in minus() method in MinguoDate 392 return super.minus(amountToAdd, unit); in minus()
|
D | HijrahDate.java | 468 public HijrahDate minus(TemporalAmount amount) { in minus() method in HijrahDate 469 return super.minus(amount); in minus() 556 public HijrahDate minus(long amountToSubtract, TemporalUnit unit) { in minus() method in HijrahDate 557 return super.minus(amountToSubtract, unit); in minus()
|
D | JapaneseDate.java | 569 public JapaneseDate minus(TemporalAmount amount) { in minus() method in JapaneseDate 570 return super.minus(amount); in minus() 636 public JapaneseDate minus(long amountToAdd, TemporalUnit unit) { in minus() method in JapaneseDate 637 return super.minus(amountToAdd, unit); in minus()
|
D | ChronoPeriod.java | 224 ChronoPeriod minus(TemporalAmount amountToSubtract); in minus() method
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKPeriod.java | 780 assertEquals(base.minus(subtract), expected); in test_minus_TemporalAmount() 785 pymd(4, 5, 6).minus(ThaiBuddhistChronology.INSTANCE.period(1, 0, 0)); in test_minus_TemporalAmount_nonISO() 815 pymd(4, 5, 6).minus(amount); in test_minus_TemporalAmount_DaysHours() 828 assertPeriod(Period.of(1, 2, 3).minus(Period.ofYears(0)), 1, 2, 3); in test_minusYears() 829 assertPeriod(Period.of(1, 2, 3).minus(Period.ofYears(10)), -9, 2, 3); in test_minusYears() 830 assertPeriod(Period.of(1, 2, 3).minus(Period.ofYears(-10)), 11, 2, 3); in test_minusYears() 831 assertPeriod(Period.of(1, 2, 3).minus(Period.ofYears(-1)), 2, 2, 3); in test_minusYears() 856 assertPeriod(Period.of(1, 2, 3).minus(Period.ofMonths(0)), 1, 2, 3); in test_minusMonths() 857 assertPeriod(Period.of(1, 2, 3).minus(Period.ofMonths(10)), 1, -8, 3); in test_minusMonths() 858 assertPeriod(Period.of(1, 2, 3).minus(Period.ofMonths(-10)), 1, 12, 3); in test_minusMonths() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestDuration.java | 133 assertSame(t.minus(Duration.ZERO), t); in minus_zeroReturnsThis() 139 assertSame(t.minus(Duration.ofSeconds(1)), Duration.ZERO); in minus_zeroSingleton()
|
D | TestLocalDate.java | 113 date = date.with(date.getMonth().minus(1)); in previous() 280 LocalDate t = TEST_2007_07_15.minus(MockSimplePeriod.ZERO_DAYS); in test_minus_Period_zero() 286 LocalDate t = TEST_2007_07_15.minus(0, ChronoUnit.DAYS); in test_minus_longPeriodUnit_zero()
|
D | MockSimplePeriod.java | 147 return temporal.minus(amount, unit); in subtractFrom()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Period.java | 708 public Period minus(TemporalAmount amountToSubtract) { in minus() method in Period 944 temporal = temporal.minus(years, YEARS); in subtractFrom() 949 temporal = temporal.minus(totalMonths, MONTHS); in subtractFrom() 953 temporal = temporal.minus(days, DAYS); in subtractFrom()
|
D | Duration.java | 826 public Duration minus(Duration duration) { in minus() method in Duration 850 public Duration minus(long amountToSubtract, TemporalUnit unit) { in minus() method in Duration 1099 temporal = temporal.minus(seconds, SECONDS); in subtractFrom() 1102 temporal = temporal.minus(nanos, NANOS); in subtractFrom()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | OffsetTimeTest.java | 83 NOON_UTC.minus(1, unit); in test_plus_minus_invalidUnits()
|