Java tutorial
//package com.java2s; //License from project: LGPL import java.util.TimeZone; public class Main { /** * @NAME getSimpleTZTag<br> * getSimpleTZTag */ public static String getSimpleTZTag() { try { TimeZone tz = TimeZone.getDefault(); String s = "tz." + tz.getDisplayName(false, TimeZone.SHORT) + "tzid." + tz.getID(); return s; } catch (Exception e) { return ""; } } }