java.time.ZonedDateTime.of(LocalDateTime date, ZoneId zone) java.time.ZonedDateTime.of(LocalDate date, LocalTime time, ZoneId zone) java.time.ZonedDateTime.ofInstant() 方法示例 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); } } java.time.ZonedDateTime.of(LocalDate date, LocalTime time, ZoneId zone) java.time.ZonedDateTime.ofInstant() 方法示例