import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import javax.annotation.Nonnull;
public class TimeZoneInfo
{
public static void main(@Nonnull final String[] args)
{
final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX");
final Date now = new Date();
System.out.println("ID (DISPLAY NAME) EXAMPLE");
for (final String id : TimeZone.getAvailableIDs())
{
final TimeZone tz = TimeZone.getTimeZone(id);
sdf.setTimeZone(tz);
System.out.println(String.format("%s (%s) %s",id, tz.getDisplayName(), sdf.format(now)));
}
}
}