Java tutorial
import java.time.Instant; import java.time.ZoneId; import java.time.ZonedDateTime; public class Main { public static void main(String[] args) { ZonedDateTime z = ZonedDateTime.ofInstant(Instant.now(), ZoneId.systemDefault()); System.out.println(z); } }