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