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