Java TimeZone Create getTimeZone(int rawoffset)

Here you can find the source of getTimeZone(int rawoffset)

Description

get Time Zone

License

Open Source License

Declaration

private static TimeZone getTimeZone(int rawoffset) 

Method Source Code

//package com.java2s;

import java.util.TimeZone;

public class Main {

    private static TimeZone getTimeZone(int rawoffset) {
        String[] timeZoneIds = TimeZone.getAvailableIDs(rawoffset);
        if (timeZoneIds.length == 0) {
            return TimeZone.getDefault();
        }//from  w  ww.  j a v  a 2  s.  co  m
        TimeZone result = TimeZone.getTimeZone(timeZoneIds[0]);
        return null == result ? TimeZone.getDefault() : result;
    }
}

Related

  1. getTimeZone()
  2. getTimeZone(Date date)
  3. getTimeZone(final Calendar cal)
  4. getTimeZone(final String id)
  5. getTimeZone(final String tzId)
  6. getTimeZone(String id)
  7. getTimeZone(String idParam)
  8. getTimeZone(String timeZone)
  9. getTimeZone(String timeZone)