List of usage examples for java.time Duration minusMinutes
public Duration minusMinutes(long minutesToSubtract)
From source file:Main.java
public static void main(String[] args) { Duration duration = Duration.between(LocalTime.MIDNIGHT, LocalTime.NOON); System.out.println(duration.getSeconds()); duration = duration.minusMinutes(300); System.out.println(duration.getSeconds()); }