有多种方法
LocalDate可用于此目的,包括:
LocalDate::toDateTimeAtCurrentTime()
LocalDate::toDateTimeAtStartOfDay()
LocalDate::toDateTime( LocalTime )
LocalDate::toDateTime( LocalTime , DateTimeZone )
您必须明确说明希望时间分量位于结果
DateTime对象中的原因,这就是为什么
DateTimegeneral-
conversion构造函数无法做到这一点。



