java.time.LocalDateTime.withYear() 方法示例 java.time.LocalDateTime.withSecond() 方法示例 java.util.zip.Adler32.reset() 方法示例 java.time.LocalDateTime.withYear() 方法示例 package com.codingdict; import java.time.LocalDateTime; public class LocalDateTimeDemo { public static void main(String[] args) { LocalDateTime date = LocalDateTime.parse("2017-01-03T10:15:30"); LocalDateTime result = date.withYear(2016); System.out.println(result); } } java.time.LocalDateTime.withSecond() 方法示例 java.util.zip.Adler32.reset() 方法示例