java.time.MonthDay.from() 方法示例 java.time.MonthDay.format() 方法示例 java.time.MonthDay.get() 方法示例 java.time.MonthDay.from() 方法示例 package com.codingdict; import java.time.MonthDay; import java.time.ZonedDateTime; public class MonthDayDemo { public static void main(String[] args) { MonthDay date = MonthDay.from(ZonedDateTime.now()); System.out.println(date); } } java.time.MonthDay.format() 方法示例 java.time.MonthDay.get() 方法示例