java.util.TimeZone.getAvailableIDs(int rawOffset) 方法


java.util.TimeZone.getAvailableIDs(int rawOffset) 方法

package com.codingdict;

import java.util.*;

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

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

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

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