LocalDateTime UTC Example

LocalDateTime UTC Example

This is an example of LocalDateTime which got introduced in JDK 1.8 to print time in UTC time zone:

  • LocalDateTimeUTC.java:

  • Ouput:

LocalDateTime UTC Example

  • For more information please visit Oracle API here

Leave a Reply

Your email address will not be published. Required fields are marked *