Java.util.GregorianCalendar.set GregorianChange() 方法 Java.util.EnumSet.range() 方法 Java.util.GregorianCalendar.setTimeZone() 方法 Java.util.GregorianCalendar.set GregorianChange() 方法 package com.codingdict; import java.util.*; public class GregorianCalendarDemo { public static void main(String[] args) { // create a new calendar GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance(); // print the current date and time System.out.println("" + cal.getTime()); // set gregorian change at another date cal.setGregorianChange(new Date(92, 12, 10)); System.out.println("Gregorian Change Date" + cal.getGregorianChange()); } } Java.util.EnumSet.range() 方法 Java.util.GregorianCalendar.setTimeZone() 方法