java.time.MonthDay.get() 方法示例 java.time.MonthDay.from() 方法示例 java.time.MonthDay.getDayOfMonth() 方法示例 java.time.MonthDay.get() 方法示例 package com.codingdict; import java.time.MonthDay; import java.time.temporal.ChronoField; public class MonthDayDemo { public static void main(String[] args) { MonthDay time = MonthDay.parse("--12-30"); System.out.println(time.get(ChronoField.DAY_OF_MONTH)); } } java.time.MonthDay.from() 方法示例 java.time.MonthDay.getDayOfMonth() 方法示例