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