java.time.Year.now() 方法示例 java.time.Year.minusYears() 方法示例 java.time.Year.now(Clock clock) java.time.Year.now() 方法示例 package com.codingdict; import java.time.Year; public class YearDemo { public static void main(String[] args) { Year date = Year.now(); System.out.println(date); } } java.time.Year.minusYears() 方法示例 java.time.Year.now(Clock clock)