List of usage examples for java.time OffsetDateTime minusHours
public OffsetDateTime minusHours(long hours)
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.minusHours(120); System.out.println(d);//from w w w . j a va2 s . co m }