Home
last modified time | relevance | path

Searched refs:minusMonths (Results 1 – 22 of 22) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
DMinguoDate.java401 MinguoDate minusMonths(long monthsToSubtract) { in minusMonths() method in MinguoDate
402 return super.minusMonths(monthsToSubtract); in minusMonths()
DThaiBuddhistDate.java401 ThaiBuddhistDate minusMonths(long monthsToSubtract) { in minusMonths() method in ThaiBuddhistDate
402 return super.minusMonths(monthsToSubtract); in minusMonths()
DHijrahDate.java566 HijrahDate minusMonths(long monthsToSubtract) { in minusMonths() method in HijrahDate
567 return super.minusMonths(monthsToSubtract); in minusMonths()
DJapaneseDate.java642 JapaneseDate minusMonths(long monthsToSubtract) { in minusMonths() method in JapaneseDate
643 return super.minusMonths(monthsToSubtract); in minusMonths()
DChronoLocalDateImpl.java332 D minusMonths(long monthsToSubtract) { in minusMonths() method in ChronoLocalDateImpl
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKYearMonth.java897 assertEquals(test.minusMonths(1), YearMonth.of(2008, 5)); in test_minusMonths_long()
903 assertEquals(test.minusMonths(0), test); in test_minusMonths_long_noChange_equal()
909 assertEquals(test.minusMonths(6), YearMonth.of(2007, 12)); in test_minusMonths_long_overYears()
915 assertEquals(test.minusMonths(-1), YearMonth.of(2008, 7)); in test_minusMonths_long_negative()
921 assertEquals(test.minusMonths(-7), YearMonth.of(2009, 1)); in test_minusMonths_long_negativeOverYear()
928 …assertEquals(test.minusMonths(months), YearMonth.of((int) (40L - months / 12), 6 - (int) (months %… in test_minusMonths_long_big()
934 test.minusMonths(-1); in test_minusMonths_long_invalidTooLarge()
940 test.minusMonths(Long.MAX_VALUE); in test_minusMonths_long_invalidTooLargeMaxSubtractMax()
946 test.minusMonths(Long.MIN_VALUE); in test_minusMonths_long_invalidTooLargeMaxSubtractMin()
952 test.minusMonths(1); in test_minusMonths_long_invalidTooSmall()
DTCKLocalDate.java1527 LocalDate t = TEST_2007_07_15.minusMonths(1);
1533 LocalDate t = TEST_2007_07_15.minusMonths(25);
1539 LocalDate t = TEST_2007_07_15.minusMonths(-1);
1545 LocalDate t = TEST_2007_07_15.minusMonths(-7);
1551 LocalDate t = TEST_2007_07_15.minusMonths(-31);
1557 LocalDate t = LocalDate.of(2008, 2, 29).minusMonths(12);
1564 LocalDate t = LocalDate.of(2007, 3, 31).minusMonths(1);
1572 LocalDate test = LocalDate.of(40, 6, 1).minusMonths(months);
1578 LocalDate.of(Year.MAX_VALUE, 12, 1).minusMonths(-1);
1584 test.minusMonths(Long.MAX_VALUE);
[all …]
DTCKPeriod.java851 assertPeriod(Period.of(1, 2, 3).minusMonths(0), 1, 2, 3); in test_minusMonths()
852 assertPeriod(Period.of(1, 2, 3).minusMonths(10), 1, -8, 3); in test_minusMonths()
853 assertPeriod(Period.of(1, 2, 3).minusMonths(-10), 1, 12, 3); in test_minusMonths()
854 assertPeriod(Period.of(1, 2, 3).minusMonths(-2), 1, 4, 3); in test_minusMonths()
865 test.minusMonths(-1); in test_minusMonths_overflowTooBig()
871 test.minusMonths(1); in test_minusMonths_overflowTooSmall()
DTCKLocalDateTime.java2159 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusMonths(1);
2165 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusMonths(25);
2171 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusMonths(-1);
2177 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusMonths(-7);
2183 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusMonths(-31);
2189 LocalDateTime t = createDateMidnight(2008, 2, 29).minusMonths(12);
2195 LocalDateTime t = createDateMidnight(2007, 3, 31).minusMonths(1);
2201 createDateMidnight(Year.MAX_VALUE, 12, 1).minusMonths(-1);
2206 createDateMidnight(Year.MIN_VALUE, 1, 1).minusMonths(1);
DTCKZonedDateTime.java1898 ZonedDateTime test = base.minusMonths(1);
1899 assertEquals(test, ZonedDateTime.of(ldt.minusMonths(1), ZONE_0100));
1906 ZonedDateTime test = base.minusMonths(0);
DTCKOffsetDateTime.java1064 OffsetDateTime test = base.minusMonths(1);
/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime.java281 OffsetDateTime test = base.minusMonths(0); in test_minusMonths_zero()
DTestLocalDate.java299 LocalDate t = TEST_2007_07_15.minusMonths(0); in test_minusMonths_long_noChange_same()
DTestLocalDateTime.java380 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusMonths(0); in test_minusMonths_int_noChange()
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java326 public java.time.OffsetDateTime minusMonths(long months) { in minusMonths() method in OffsetDateTime
/libcore/ojluni/src/main/java/java/time/
DLocalDate.java1415 … return minusMonths(periodToSubtract.toTotalMonths()).minusDays(periodToSubtract.getDays()); in minus()
1490 public LocalDate minusMonths(long monthsToSubtract) { in minusMonths() method in LocalDate
DPeriod.java748 public Period minusMonths(long monthsToSubtract) { in minusMonths() method in Period
DYearMonth.java923 public YearMonth minusMonths(long monthsToSubtract) { in minusMonths() method in YearMonth
DOffsetDateTime.java1423 public OffsetDateTime minusMonths(long months) { in minusMonths() method in OffsetDateTime
DZonedDateTime.java1888 public ZonedDateTime minusMonths(long months) { in minusMonths() method in ZonedDateTime
DLocalDateTime.java1430 public LocalDateTime minusMonths(long months) { in minusMonths() method in LocalDateTime
/libcore/api/
Dcurrent.txt11566 method public java.time.LocalDate minusMonths(long);
11634 method public java.time.LocalDateTime minusMonths(long);
11831 method public java.time.OffsetDateTime minusMonths(long);
11955 method public java.time.Period minusMonths(long);
12042 method public java.time.YearMonth minusMonths(long);
12126 method public java.time.ZonedDateTime minusMonths(long);