Java TimeZone Create codeToTimeZone(String tzString)

Here you can find the source of codeToTimeZone(String tzString)

Description

code To Time Zone

License

Open Source License

Declaration

public static TimeZone codeToTimeZone(String tzString) 

Method Source Code

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

import java.util.TimeZone;

public class Main {
    public static TimeZone codeToTimeZone(String tzString) {

        return stringToTimeZone(tzString);
    }/*w ww .  j  av a2s .c o  m*/

    public static TimeZone stringToTimeZone(String tzString) {

        return TimeZone.getTimeZone(tzString != null ? tzString : "");
    }
}

Related

  1. getAvailableTimezones()
  2. getCurrentTimezone()
  3. getCurrentTimeZoneTime()
  4. getServerTimeZone()