java.time.MonthDay.adjustInto() 方法示例 java.time.LocalTime.withNano() 方法示例 java.time.MonthDay.atYear() 方法示例 java.time.MonthDay.adjustInto() 方法示例 package com.codingdict; import java.time.MonthDay; import java.time.ZonedDateTime; public class MonthDayDemo { public static void main(String[] args) { ZonedDateTime date = ZonedDateTime.now(); System.out.println(date); MonthDay date1 = MonthDay.parse("--12-30"); date = (ZonedDateTime)date1.adjustInto(date); System.out.println(date); } } java.time.LocalTime.withNano() 方法示例 java.time.MonthDay.atYear() 方法示例