net.sf.ecl.datepicker.util
Class TimeZoneUtils

java.lang.Object
  extended by net.sf.ecl.datepicker.util.TimeZoneUtils

public class TimeZoneUtils
extends Object

is a timezone manipulation utilities.

Version:
$Revision: 1.3 $
Author:
Harlamov

Method Summary
static String getZoneGlobalId(TimeZone timeZone)
          returns the global identifier of the given time zone.
static TimeZone parseTimeZone(String tz)
          returns the time zone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getZoneGlobalId

public static String getZoneGlobalId(TimeZone timeZone)
returns the global identifier of the given time zone.

Parameters:
timeZone - the time zone.
Returns:
the identifier.

parseTimeZone

public static TimeZone parseTimeZone(String tz)
returns the time zone.

Parameters:
tz - the time zone global or relative identifier.
Returns:
the specified time zone or UTC time zone.