List of usage examples for java.time Clock tickSeconds
public static Clock tickSeconds(ZoneId zone)
From source file:Main.java
public static void main(String[] args) { Clock clock = Clock.tickSeconds(ZoneId.systemDefault()); System.out.println(clock);//from w ww. j ava 2s . com System.out.println(clock.instant()); }