Here you can find the source of timeZoneToString(TimeZone tz)
public static String timeZoneToString(TimeZone tz)
//package com.java2s; //License from project: Apache License import java.util.TimeZone; public class Main { public static String timeZoneToString(TimeZone tz) { return tz != null ? tz.getID() : ""; }//from ww w . ja v a 2 s . c o m }