Here you can find the source of isInEasternEightZones()
public static boolean isInEasternEightZones()
//package com.java2s; //License from project: Apache License import java.util.TimeZone; public class Main { public static boolean isInEasternEightZones() { boolean defaultVaule = true; if (TimeZone.getDefault() == TimeZone.getTimeZone("GMT+08")) defaultVaule = true;//w ww. j a v a 2 s. co m else defaultVaule = false; return defaultVaule; } }