java.time.LocalDate.atTime(OffsetTime time) java.time.LocalDate.atTime(LocalTime time) java.time.LocalDate.compareTo() 方法示例 java.time.LocalDate.atTime(OffsetTime time) package com.codingdict; import java.time.LocalDate; import java.time.OffsetDateTime; import java.time.OffsetTime; public class LocalDateDemo { public static void main(String[] args) { LocalDate date = LocalDate.parse("2017-02-03"); System.out.println(date); OffsetTime time = OffsetTime.now(); OffsetDateTime date1 = date.atTime(time); System.out.println(date1); } } java.time.LocalDate.atTime(LocalTime time) java.time.LocalDate.compareTo() 方法示例