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