Code example for TimeZone

Methods: getDisplayName

0
	private static final String OFFSET_FORMAT = "%s %02d:%02d";
	private TimeZone timeZone;
	private String displayName;
	 
	public WorldClockTimeZone(TimeZone timeZone) {
		this(timeZone, timeZone.getDisplayName());
	}	 
	 
	public WorldClockTimeZone(TimeZone timeZone, String displayName) {		
		this.timeZone = timeZone;
		this.displayName = displayName;
	} 
 
 
	@Override 
	public String toString() {
		return this.timeZone.getID()+" ("+this.getDisplayName()+")";
	} 
 
	public String getId() {		
Experience pair programming with AI  Get Codota for Java