ariba.ui.aribaweb.util
Class AWTimeZone
java.lang.Object
ariba.ui.aribaweb.util.AWTimeZone
public final class AWTimeZone
- extends java.lang.Object
Method Summary |
static java.util.Map<java.lang.String,java.util.TimeZone> |
createTimeZoneByOffSetMap(java.util.List preferredTimezones,
boolean sparse)
Create a map of offset keys to timezones. |
static java.util.TimeZone |
getPreferredTimeZone(java.util.TimeZone tz)
|
static java.util.TimeZone |
getTimeZone(java.lang.String offsetStr,
java.lang.String offsetStrFeb,
java.lang.String offsetStrAug,
boolean dayLightSavings)
|
static java.util.TimeZone |
timeZoneFromOffsetKey(java.lang.String offsetKey)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STD_YEAR
public static int STD_YEAR
STD_MONTH
public static int STD_MONTH
STD_DATE
public static int STD_DATE
DST_YEAR
public static int DST_YEAR
DST_MONTH
public static int DST_MONTH
DST_DATE
public static int DST_DATE
AWTimeZone
public AWTimeZone()
createTimeZoneByOffSetMap
public static java.util.Map<java.lang.String,java.util.TimeZone> createTimeZoneByOffSetMap(java.util.List preferredTimezones,
boolean sparse)
- Create a map of offset keys to timezones. Since multiple timezones can map to a particular offset key, the
preferredTimezones can be used to specify a preferred timezone for a given offset. If no preferred timezone
is given, then the default is use the last timezone for a given offset based on the order from
java.util.TimeZone.getAvailableIDs().
- Parameters:
preferredTimezones
- null or list of preferred timezones (see java.util.Timezone.getID()sparse
- if true, then only insert entries for preferred timezones. If false, then create a full map
including all non-preferred timezones.
- Returns:
- map of offset key to timezone
getPreferredTimeZone
public static java.util.TimeZone getPreferredTimeZone(java.util.TimeZone tz)
timeZoneFromOffsetKey
public static java.util.TimeZone timeZoneFromOffsetKey(java.lang.String offsetKey)
getTimeZone
public static java.util.TimeZone getTimeZone(java.lang.String offsetStr,
java.lang.String offsetStrFeb,
java.lang.String offsetStrAug,
boolean dayLightSavings)
AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.