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