java.util.TimeZone.getOffset(int era,int year,int month,int day,int dayOfWeek,int milliseconds) 方法 java.util.TimeZone.getID() 方法 java.util.TimeZone.getOffset(long date) 方法 java.util.TimeZone.getOffset(int era,int year,int month,int day,int dayOfWeek,int milliseconds) 方法 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 offset value System.out.println("Offset value is :" + timezone.getOffset(1, 2011, 2, 2, 2, 300)); } } java.util.TimeZone.getID() 方法 java.util.TimeZone.getOffset(long date) 方法