is In Eastern Eighth Time Zone - Android java.util

Android examples for java.util:Timezone

Description

is In Eastern Eighth Time Zone

Demo Code


import java.util.TimeZone;

public class Main {

  public static boolean isInEasternEightZones() {
    boolean defaultVaule = true;
    if (TimeZone.getDefault() == TimeZone.getTimeZone("GMT+08"))
      defaultVaule = true;/* w  w w . j  av  a  2s.  c om*/
    else
      defaultVaule = false;
    return defaultVaule;
  }

}

Related Tutorials