java.util.TimeZone.getOffset(long date) 方法


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));
   }    
}