Home
last modified time | relevance | path

Searched refs:minus (Results 1 – 25 of 57) sorted by relevance

123

/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestChronoLocalDate.java89 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));
DTestExampleCode.java110 .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/
DTCKChronoLocalDateTime.java171 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 …]
DTCKChronoZonedDateTime.java172 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 …]
DTCKChronoLocalDate.java169 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()
DTCKChronoPeriod.java185 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/
DTemporal.java333 default Temporal minus(TemporalAmount amount) { in minus() method
369 default Temporal minus(long amountToSubtract, TemporalUnit unit) { in minus() method
DTemporalAdjusters.java445 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/
DChronoPeriodImpl.java186 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()
DChronoLocalDate.java471 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()
DChronoLocalDateTime.java301 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()
DChronoLocalDateImpl.java218 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()
DChronoZonedDateTime.java448 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()
DThaiBuddhistDate.java360 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()
DMinguoDate.java360 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()
DHijrahDate.java468 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()
DJapaneseDate.java569 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()
DChronoPeriod.java224 ChronoPeriod minus(TemporalAmount amountToSubtract); in minus() method
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKPeriod.java780 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/
DTestDuration.java133 assertSame(t.minus(Duration.ZERO), t); in minus_zeroReturnsThis()
139 assertSame(t.minus(Duration.ofSeconds(1)), Duration.ZERO); in minus_zeroSingleton()
DTestLocalDate.java113 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()
DMockSimplePeriod.java147 return temporal.minus(amount, unit); in subtractFrom()
/libcore/ojluni/src/main/java/java/time/
DPeriod.java708 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()
DDuration.java826 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/
DOffsetTimeTest.java83 NOON_UTC.minus(1, unit); in test_plus_minus_invalidUnits()

123