Here you can find the source of toTimeZone(String value)
Parameter | Description |
---|---|
value | Asia/Taipei,GMT+8,GMT |
public static TimeZone toTimeZone(String value)
//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; } }