java.time.ZonedDateTime.of(LocalDateTime date, ZoneId zone)


java.time.ZonedDateTime.of(LocalDateTime date, ZoneId zone)

package com.codingdict;

import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.time.ZoneId;

public class ZonedDateTimeDemo {
   public static void main(String[] args) {

      ZonedDateTime date = ZonedDateTime.of(LocalDateTime.now(), ZoneId.systemDefault());
      System.out.println(date);  
   }
}