java.time.LocalDate.minus() 方法示例 java.time.LocalDate.lengthOfYear() 方法示例 java.time.LocalDate.minus(TemporalAmount amountToSubtract) java.time.LocalDate.minus() 方法示例 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("2017-02-03"); System.out.println(date.minus(2,ChronoUnit.DAYS)); } } java.time.LocalDate.lengthOfYear() 方法示例 java.time.LocalDate.minus(TemporalAmount amountToSubtract)