de.laliluna.date
Class TimeZoneUtil

java.lang.Object
  extended by de.laliluna.date.TimeZoneUtil

public class TimeZoneUtil
extends java.lang.Object

Helper class to convert the enum TimeZone to Java's java.util.TimeZone and back


Field Summary
static java.util.List<java.lang.String> javaZones
           
static java.util.List<TimeZone> zones
           
 
Constructor Summary
TimeZoneUtil()
           
 
Method Summary
static TimeZone convert(java.util.TimeZone timeZone)
          Gives a TimeZone for a given Java java.util.TimeZone Returns null if no time zone was found.
static java.util.TimeZone convert(TimeZone timeZone)
          Gives a Java java.util.TimeZone for a given TimeZone Returns null if no time zone was found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

zones

public static final java.util.List<TimeZone> zones

javaZones

public static final java.util.List<java.lang.String> javaZones
Constructor Detail

TimeZoneUtil

public TimeZoneUtil()
Method Detail

convert

public static TimeZone convert(java.util.TimeZone timeZone)
Gives a TimeZone for a given Java java.util.TimeZone Returns null if no time zone was found.

Parameters:
timeZone - - the Java time zone
Returns:
- time zone corresponding to the Java time zone or null

convert

public static java.util.TimeZone convert(TimeZone timeZone)
Gives a Java java.util.TimeZone for a given TimeZone Returns null if no time zone was found.

Parameters:
timeZone - - the enum time zone
Returns:
- Java time zone corresponding to the passed enum time zone or null


Copyright © 2009 Sebastian Hennebrueder, http://www.laliluna.de