List of usage examples for java.time YearMonth minus
@Override
public YearMonth minus(TemporalAmount amountToSubtract)
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); YearMonth s = y.minus(Period.ofYears(3)); System.out.println(s);//from w w w . j a v a 2s .c o m }