List of usage examples for java.time Clock tickMinutes
public static Clock tickMinutes(ZoneId zone)
From source file:Main.java
public static void main(String[] args) { Clock clock = Clock.tickMinutes(ZoneId.systemDefault()); System.out.println(clock);//from w w w. j ava 2 s . co m System.out.println(clock.instant()); }
From source file:Main.java
public static void main(String[] args) { Clock clock = Clock.tickMinutes(ZoneId.systemDefault()); Duration duration = Duration.ofHours(3); Clock newClock = Clock.tick(clock, duration); System.out.println(newClock.instant()); }