Here you can find the source of getHostDefaultValues()
static void getHostDefaultValues()
//package com.java2s; import java.util.TimeZone; public class Main { static TimeZone tz; static String defaultID; static int defaultRawOffset; static void getHostDefaultValues() { tz = TimeZone.getDefault(); defaultID = tz.getID();//from ww w . j av a 2 s . co m defaultRawOffset = tz.getRawOffset(); } }