List of usage examples for java.time Duration addTo
@Override
public Temporal addTo(Temporal temporal)
From source file:Main.java
public static void main(String[] args) { Duration duration = Duration.ofDays(2); Temporal l = duration.addTo(LocalDateTime.now()); System.out.println(l);//from www.ja v a 2s . c o m }