Java ZonedDateTime create now()
now()
import java.time.ZonedDateTime; public class Main { public static void main(String[] args) { ZonedDateTime dateTimeWithZone = ZonedDateTime.now(); System.out.println(dateTimeWithZone); }// w w w . j a v a2s . c o m }