java.time.LocalDate.isSupported(TemporalUnit unit) java.time.LocalDate.isSupported() 方法示例 java.time.LocalDate.lengthOfMonth() 方法示例 java.time.LocalDate.isSupported(TemporalUnit unit) package com.codingdict; import java.time.LocalDate; import java.time.temporal.ChronoUnit; public class LocalDateDemo { public static void main(String[] args) { LocalDate date = LocalDate.parse("2020-02-03"); System.out.println(date.isSupported(ChronoUnit.ERAS)); } } java.time.LocalDate.isSupported() 方法示例 java.time.LocalDate.lengthOfMonth() 方法示例