List of usage examples for java.time OffsetDateTime minusYears
public OffsetDateTime minusYears(long years)
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.minusYears(20); System.out.println(d);/*w w w. j a v a 2 s . c o m*/ }