java.util.TimeZone.getDisplayName(boolean daylight,int style,Locale locale) 方法


java.util.TimeZone.getDisplayName(boolean daylight,int style,Locale locale) 方法

package com.codingdict;

import java.util.*;

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

      // create default time zone object
      TimeZone timezone = TimeZone.getTimeZone("US");

      // get display name for specific locale
      String disname = timezone.getDisplayName(true,1,new Locale("EN","US"));

      // checking display name         
      System.out.println("Display name is :" + disname);
   }    
}