java.util.TimeZone.getID() 方法 java.util.TimeZone.getDSTSavings() 方法 java.util.TimeZone.getOffset(int era,int year,int month,int day,int dayOfWeek,int milliseconds) 方法 java.util.TimeZone.getID() 方法 package com.codingdict; import java.util.*; public class TimeZoneDemo { public static void main( String args[] ) { // create time zone object TimeZone timezone = TimeZone.getTimeZone("Europe/Paris"); // checking ID of this time zone System.out.println("ID value is :" + timezone.getID()); } } java.util.TimeZone.getDSTSavings() 方法 java.util.TimeZone.getOffset(int era,int year,int month,int day,int dayOfWeek,int milliseconds) 方法