Java TimeZone Usage isInEasternEightZones()

Here you can find the source of isInEasternEightZones()

Description

is In Eastern Eight Zones

License

Apache License

Declaration

public static boolean isInEasternEightZones() 

Method Source Code

//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;
    }
}

Related

  1. computeTimeZoneOffsetInHours(TimeZone timeZone, long currentDatetime)
  2. createPostgresTimeZone()
  3. createTaiTimeZone(int leapSecs)
  4. datePlusDays(Date date, int days)
  5. findTimeZoneInDate(String date)
  6. isKeepTimeZone(TimeZone tz)
  7. isSameDayOfMillis(final long ms1, final long ms2)
  8. isTimeZoneDisponible(TimeZone timeZone)
  9. isValidTimeZone(final String timeZone)