java.util.TimeZone.getDisplayName(Locale locale) 方法


java.util.TimeZone.getDisplayName(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("Europe/Paris");

      // create locale
      Locale locale = new Locale("CHINESE", "CHINA");

      // get display name for specific locale
      String disname = timezone.getDisplayName(locale);       

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