java.time.Year.minus() 方法示例 java.time.Year.length() 方法示例 java.time.Year.minus(TemporalAmount amountToSubtract) java.time.Year.minus() 方法示例 package com.codingdict; import java.time.Year; import java.time.temporal.ChronoUnit; public class YearDemo { public static void main(String[] args) { Year date = Year.of(2017); System.out.println(date.minus(2,ChronoUnit.YEARS)); } } java.time.Year.length() 方法示例 java.time.Year.minus(TemporalAmount amountToSubtract)