/libcore/luni/src/test/java/libcore/java/time/ |
D | OffsetDateTimeTest.java | 60 ODT.minus(1, ChronoUnit.HOURS)); in test_minus_utc_offset() 62 ODT.minus(23, ChronoUnit.HOURS)); in test_minus_utc_offset() 64 ODT.minus(1, ChronoUnit.MINUTES)); in test_minus_utc_offset() 66 ODT.minus(60, ChronoUnit.SECONDS)); in test_minus_utc_offset() 68 ODT.minus(1, ChronoUnit.MILLIS)); in test_minus_utc_offset() 70 ODT.minus(1, ChronoUnit.NANOS)); in test_minus_utc_offset() 80 odt.minus(1, ChronoUnit.HOURS)); in test_minus_non_utc_offset() 82 odt.minus(23, ChronoUnit.HOURS)); in test_minus_non_utc_offset() 84 odt.minus(1, ChronoUnit.MINUTES)); in test_minus_non_utc_offset() 86 odt.minus(60, ChronoUnit.SECONDS)); in test_minus_non_utc_offset() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseDateTest.java | 43 JapaneseDate.now().minus(null); in minus_null_throwsNpe() 54 assertEquals(JapaneseDate.of(REIWA, 3, 5, 20), date.minus(1, ChronoUnit.DAYS)); in minus_days() 61 assertEquals(JapaneseDate.of(REIWA, 3, 5, 22), date.minus(-1, ChronoUnit.DAYS)); in minus_negative_days() 68 assertEquals(JapaneseDate.of(HEISEI, 31, 4, 30), date.minus(1, ChronoUnit.DAYS)); in minus_days_crossEras() 74 JapaneseDate.now().minus(1, ChronoUnit.HOURS); in minus_less_than_day_throwsUnsupportedTemporalTypeException() 81 JapaneseDate.now().minus(1, ChronoUnit.MINUTES); in minus_less_than_day_throwsUnsupportedTemporalTypeException() 88 JapaneseDate.now().minus(1, ChronoUnit.SECONDS); in minus_less_than_day_throwsUnsupportedTemporalTypeException() 98 JapaneseDate.now().minus(Duration.ofDays(1)); in minus_Duration_throws_UnsupportedTemporalTypeException() 108 JapaneseDate.now().minus(Period.ofDays(1)); in minus_Period_throws_DateTimeException() 120 date.minus(JapaneseChronology.INSTANCE.period(1, 1, 1))); in minus_japanesePeriod() [all …]
|
D | MinguoDateTest.java | 40 MinguoDate.now().minus(null); in minus_null_throwsNpe() 51 assertEquals(MinguoDate.of(109, 12, 31), date.minus(1, ChronoUnit.DAYS)); in minus_days() 57 MinguoDate.now().minus(Duration.ofDays(1)); in minus_Duration_throws_UnsupportedTemporalTypeException() 67 MinguoDate.now().minus(Period.ofDays(1)); in minus_Period_throws_DateTimeException() 79 date.minus(MinguoChronology.INSTANCE.period(1, 1, 1))); in minus_minguoPeriod() 87 date.minus(MinguoChronology.INSTANCE.period(1, -1, -1))); in minus_minguoPeriod_withNegative() 90 date.minus(MinguoChronology.INSTANCE.period(0, -1, -1))); in minus_minguoPeriod_withNegative()
|
D | HijrahDateTest.java | 44 HijrahDate.now().minus(/* amount= */ null); in minus_null_throws_NPE() 54 HijrahDate.now().minus(Duration.ofDays(1)); in minus_Duration_throws_DateTimeException() 64 HijrahDate.now().minus(Period.ofDays(1)); in minus_Period_throws_DateTimeException() 77 now.minus(HijrahChronology.INSTANCE.period(0, 0, 1))); in minus_hijrah_period() 79 now.minus(HijrahChronology.INSTANCE.period(1, 0, 0))); in minus_hijrah_period() 81 now.minus(HijrahChronology.INSTANCE.period(-1, -1, -1))); in minus_hijrah_period() 83 now.minus(HijrahChronology.INSTANCE.period(0, 0, 14))); in minus_hijrah_period() 85 now.minus(HijrahChronology.INSTANCE.period(0, 0, -16))); in minus_hijrah_period()
|
D | ThaiBuddhistDateTest.java | 42 assertEquals(ThaiBuddhistDate.of(2482, 11, 30), date.minus(period)); in minus_thaiBuddhistChronologyPeriod() 51 assertEquals(ThaiBuddhistDate.of(2483, 2, 2), date.minus(period)); in minus_thaiBuddhistChronologyPeriod_withNegative() 59 date.minus(Period.ofDays(1)); in minus_javaTimePeriod_shouldThrowDateTimeException() 71 date.minus(Duration.ofDays(1)); in minus_javaTimeDuration_shouldThrowDateTimeException() 81 ThaiBuddhistDate.now().minus(null); in minusNull_shouldThrowNpe()
|
/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));
|
/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 | 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 | 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 | 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()
|
/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()
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | TestUtils.java | 45 if (now.minus(startTime).compareTo(timeout) >= 0) { in waitWhileTrueOrTimeout()
|
/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()
|