java.time.OffsetDateTime.of(LocalDate date, LocalTime time, ZoneOffset offset) java.time.OffsetDateTime.of() 方法示例 java.time.OffsetDateTime.of(LocalDate date, LocalTime time, ZoneOffset offset) java.time.OffsetDateTime.of(LocalDate date, LocalTime time, ZoneOffset offset) package com.codingdict; import java.time.LocalDate; import java.time.OffsetDateTime; import java.time.LocalTime; import java.time.ZoneOffset; public class OffsetDateTimeDemo { public static void main(String[] args) { LocalDate localDate = LocalDate.parse("2017-02-03"); LocalTime localTime = LocalTime.parse("12:30:30"); OffsetDateTime date = OffsetDateTime.of(localDate, localTime,ZoneOffset.UTC); System.out.println(date); } } java.time.OffsetDateTime.of() 方法示例 java.time.OffsetDateTime.of(LocalDate date, LocalTime time, ZoneOffset offset)