de.bea.domingo.util
Class Timezones

java.lang.Object
  extended by de.bea.domingo.util.Timezones

public final class Timezones
extends java.lang.Object

Static utility methods for time zone operations and conversions.

Author:
Kurt Riede

Field Summary
static java.lang.String DEFAULT
          Default time zone.
 
Method Summary
static java.lang.String getLotusTimeZoneString(java.lang.String javaTimeZoneString)
          Converts a Java time zone string to a Lotus timezone string.
static java.lang.String getLotusTimeZoneString(java.util.TimeZone timeZone)
          Converts a Java time zone to a Lotus timezone string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final java.lang.String DEFAULT
Default time zone.

Method Detail

getLotusTimeZoneString

public static java.lang.String getLotusTimeZoneString(java.util.TimeZone timeZone)
                                               throws java.lang.NullPointerException,
                                                      java.lang.IllegalArgumentException
Converts a Java time zone to a Lotus timezone string. if the given java time zone string is null, empry or unknown, the default lotus time zone string is returned ("").

Parameters:
timeZone - the time zone
Returns:
Lotus time zone string
Throws:
java.lang.NullPointerException - if the given time zone string is null
java.lang.IllegalArgumentException - if the length of the given time zone string is zero

getLotusTimeZoneString

public static java.lang.String getLotusTimeZoneString(java.lang.String javaTimeZoneString)
                                               throws java.lang.NullPointerException,
                                                      java.lang.IllegalArgumentException
Converts a Java time zone string to a Lotus timezone string. if the given java time zone string is null, empry or unknown, the default lotus time zone string is returned ("").

Parameters:
javaTimeZoneString - the java time zone string
Returns:
Lotus time zone string
Throws:
java.lang.NullPointerException - if the given time zone string is null
java.lang.IllegalArgumentException - if the given time zone string is empty or unknown


Domingo Java-API