Java TimeZone Create toTimeZone(String value)

Here you can find the source of toTimeZone(String value)

Description

to Time Zone

License

Open Source License

Parameter

Parameter Description
value Asia/Taipei,GMT+8,GMT

Declaration

public static TimeZone toTimeZone(String value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.TimeZone;

public class Main {
    private static TimeZone timeZone = null;

    /**// www . j  a v a2 s.  c om
     * @param value
     *            Asia/Taipei,GMT+8,GMT
     */
    public static TimeZone toTimeZone(String value) {
        TimeZone result = null;
        if (value != null) {
            result = TimeZone.getTimeZone(value);
        }
        return result;
    }

    public static TimeZone getTimeZone() {
        return timeZone;
    }
}

Related

  1. getTimeZoneOfTenant()
  2. getTotalTimeZoneOffset(TimeZone zone)
  3. getUserTimeZoneDate(String userTimezone)
  4. testSimpleTimeZone()
  5. toTimeZone(int gmtOffset)
  6. toTimeZone(String zone)