java.util.TimeZone.getID() 方法


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