java.time.YearMonth.of() 方法示例 java.time.YearMonth.now(ZoneId zone) java.time.YearMonth.of(int year,Month month) java.time.YearMonth.of() 方法示例 package com.codingdict; import java.time.YearMonth; public class YearMonthDemo { public static void main(String[] args) { YearMonth year = YearMonth.of(2017,12); System.out.println(year); } } java.time.YearMonth.now(ZoneId zone) java.time.YearMonth.of(int year,Month month)