Java TimeZone To timeZoneToCode(TimeZone tz)

Here you can find the source of timeZoneToCode(TimeZone tz)

Description

time Zone To Code

License

Apache License

Declaration

public static String timeZoneToCode(TimeZone tz) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.TimeZone;

public class Main {
    public static String timeZoneToCode(TimeZone tz) {

        return timeZoneToString(tz);
    }//from   ww w.j  a  v a2s.c o  m

    public static String timeZoneToString(TimeZone tz) {

        return tz != null ? tz.getID() : "";
    }
}

Related

  1. createTimeZoneFromDouble(double timeZoneOffsetInHours)
  2. extractTimeZone(String strdate, Date thedate)
  3. parseTimeZoneString(String timeZoneString)
  4. setTimeZone(String name)
  5. timeZoneToString(TimeZone tz)
  6. toLocalTZ(Date time, TimeZone localTimeZone)