java.time.Year.atMonth() 方法示例 java.time.OffsetDateTime.minusDays() 方法示例 java.time.Year.atMonth(Month month) java.time.Year.atMonth() 方法示例 package com.codingdict; import java.time.YearMonth; import java.time.Year; public class YearDemo { public static void main(String[] args) { Year year = Year.of(2015); YearMonth date = year.atMonth(10); System.out.println(date); } } java.time.OffsetDateTime.minusDays() 方法示例 java.time.Year.atMonth(Month month)