java.util.TimeZone.getAvailableIDs() 方法示例


java.util.TimeZone.getAvailableIDs() 方法示例

package com.codingdict;

import java.util.*;

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

      // getting available Ids
      String[] availId = TimeZone.getAvailableIDs();      

      // checking available Ids
      System.out.println("Available Ids are: ");

      for (int i = 0; i<availId.length; i++) {
         System.out.println(availId[i]);
      }
   }    
}