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.java646 JapaneseDate minusMonths(long monthsToSubtract) { in minusMonths() method in JapaneseDate
647 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.java1458 LocalDate t = TEST_2007_07_15.minusMonths(1);
1464 LocalDate t = TEST_2007_07_15.minusMonths(25);
1470 LocalDate t = TEST_2007_07_15.minusMonths(-1);
1476 LocalDate t = TEST_2007_07_15.minusMonths(-7);
1482 LocalDate t = TEST_2007_07_15.minusMonths(-31);
1488 LocalDate t = LocalDate.of(2008, 2, 29).minusMonths(12);
1495 LocalDate t = LocalDate.of(2007, 3, 31).minusMonths(1);
1503 LocalDate test = LocalDate.of(40, 6, 1).minusMonths(months);
1509 LocalDate.of(Year.MAX_VALUE, 12, 1).minusMonths(-1);
1515 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.java2165 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusMonths(1);
2171 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusMonths(25);
2177 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusMonths(-1);
2183 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusMonths(-7);
2189 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusMonths(-31);
2195 LocalDateTime t = createDateMidnight(2008, 2, 29).minusMonths(12);
2201 LocalDateTime t = createDateMidnight(2007, 3, 31).minusMonths(1);
2207 createDateMidnight(Year.MAX_VALUE, 12, 1).minusMonths(-1);
2212 createDateMidnight(Year.MIN_VALUE, 1, 1).minusMonths(1);
DTCKZonedDateTime.java1903 ZonedDateTime test = base.minusMonths(1);
1904 assertEquals(test, ZonedDateTime.of(ldt.minusMonths(1), ZONE_0100));
1911 ZonedDateTime test = base.minusMonths(0);
DTCKOffsetDateTime.java1079 OffsetDateTime test = base.minusMonths(1);
/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime.java277 OffsetDateTime test = base.minusMonths(0); in test_minusMonths_zero()
DTestLocalDate.java298 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/src/main/java/java/time/
DLocalDate.java1373 … return minusMonths(periodToSubtract.toTotalMonths()).minusDays(periodToSubtract.getDays()); in minus()
1448 public LocalDate minusMonths(long monthsToSubtract) { in minusMonths() method in LocalDate
DPeriod.java746 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.java1886 public ZonedDateTime minusMonths(long months) { in minusMonths() method in ZonedDateTime
DLocalDateTime.java1437 public LocalDateTime minusMonths(long months) { in minusMonths() method in LocalDateTime
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java326 public java.time.OffsetDateTime minusMonths(long months) { in minusMonths() method in OffsetDateTime
/libcore/api/
Dcurrent.txt10733 method public java.time.LocalDate minusMonths(long);
10784 method public java.time.LocalDateTime minusMonths(long);
10971 method public java.time.OffsetDateTime minusMonths(long);
11085 method public java.time.Period minusMonths(long);
11167 method public java.time.YearMonth minusMonths(long);
11240 method public java.time.ZonedDateTime minusMonths(long);