List of usage examples for java.time YearMonth minus
@Override public YearMonth minus(long amountToSubtract, TemporalUnit unit)
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); YearMonth s = y.minus(12, ChronoUnit.YEARS); System.out.println(s);//from w w w .j av a 2 s. c o m }