java.util.TimeZone.getTimeZone(String ID) 方法


java.util.TimeZone.getTimeZone(String ID) 方法

package com.codingdict;

import java.util.*;

public class TimeZoneDemo {
   public static void main( String args[] ) {

      // create time zone object     
      TimeZone timezone = TimeZone.getDefault();

      // checking time zone value     
      System.out.println("Time zone:" + timezone.getTimeZone("GMT-8:00"));
   }    
}