java.util.TimeZone.getOffset(long date) 方法 java.util.TimeZone.getOffset(int era,int year,int month,int day,int dayOfWeek,int milliseconds) 方法 java.util.TimeZone.getRawOffset() 方法 java.util.TimeZone.getOffset(long date) 方法 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 for date System.out.println("Offset value:" + timezone.getOffset(Calendar.ZONE_OFFSET)); } } java.util.TimeZone.getOffset(int era,int year,int month,int day,int dayOfWeek,int milliseconds) 方法 java.util.TimeZone.getRawOffset() 方法