List of usage examples for java.time Period plusYears
public Period plusYears(long yearsToAdd)
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(1); Period l = p.plusYears(12); System.out.println(l);//from ww w. ja v a 2 s .co m }