Java ZonedDateTime create now()

Description

Java ZonedDateTime create 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
}



PreviousNext

Related