java.time.MonthDay.getLong() 方法示例 java.time.MonthDay.getDayOfMonth() 方法示例 java.time.MonthDay.getMonth() 方法示例 java.time.MonthDay.getLong() 方法示例 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.getLong(ChronoField.DAY_OF_MONTH)); } } java.time.MonthDay.getDayOfMonth() 方法示例 java.time.MonthDay.getMonth() 方法示例