java.time.ZonedDateTime.of() 方法示例


java.time.ZonedDateTime.of() 方法示例

package com.codingdict;

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

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

      ZonedDateTime date = ZonedDateTime.of(2017,2,3,6,30,40,50000, ZoneId.systemDefault());
      System.out.println(date);  
   }
}