Home
last modified time | relevance | path

Searched refs:withYears (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKPeriod.java581 assertPeriod(Period.of(1, 2, 3).withYears(1), 1, 2, 3); in test_withYears()
582 assertPeriod(Period.of(1, 2, 3).withYears(10), 10, 2, 3); in test_withYears()
583 assertPeriod(Period.of(1, 2, 3).withYears(-10), -10, 2, 3); in test_withYears()
584 assertPeriod(Period.of(-1, -2, -3).withYears(10), 10, -2, -3); in test_withYears()
585 assertPeriod(Period.of(1, 2, 3).withYears(0), 0, 2, 3); in test_withYears()
DTCKYearMonth.java814 {YearMonth.of(1, 1), Period.ofMonths(2).withYears(1), YearMonth.of(2, 3), null}, in data_plus_TemporalAmount()
815 {YearMonth.of(1, 1), Period.ofMonths(-1).withYears(-12), YearMonth.of(-12, 12), null}, in data_plus_TemporalAmount()
1029 {YearMonth.of(1, 1), Period.ofMonths(2).withYears(1), YearMonth.of(-1, 11), null}, in data_minus_TemporalAmount()
1030 {YearMonth.of(1, 1), Period.ofMonths(-1).withYears(-12), YearMonth.of(13, 2), null}, in data_minus_TemporalAmount()
/libcore/ojluni/src/main/java/java/time/
DPeriod.java551 public Period withYears(int years) { in withYears() method in Period