java.time.LocalDateTime.isSupported() 方法示例 java.time.LocalDateTime.isSupported() 方法示例 java.time.LocalDateTime.minus() 方法示例 java.time.LocalDateTime.isSupported() 方法示例 package com.codingdict; import java.time.LocalDateTime; import java.time.temporal.ChronoUnit; public class LocalDateTimeDemo { public static void main(String[] args) { LocalDateTime date = LocalDateTime.parse("2020-02-03T12:30:30"); System.out.println(date.isSupported(ChronoUnit.DAYS)); } } java.time.LocalDateTime.isSupported() 方法示例 java.time.LocalDateTime.minus() 方法示例