|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.openfoundation.internationalization.XPTimeZone
public class XPTimeZone
XPTimeZone represents a time zone offset, and also figures out daylight savings.
Constructor Summary | |
---|---|
XPTimeZone()
Default Constructor that initializes to the default timezone. |
|
XPTimeZone(java.util.TimeZone timeZone)
Create a new XPTimeZone instance wrapping the local platform equivalent. |
Method Summary | |
---|---|
static java.lang.String[] |
GetAvailableTimeZoneNames()
Gets all the available TimeZone IDs (e.g. |
static java.lang.String[] |
GetAvailableTimeZoneNames(long offset)
Gets all the available TimeZone IDs according to the given time zone offset (e.g. |
static XPTimeZone |
GetCurrentTimeZone()
Gets the default TimeZone for this host. |
java.lang.String |
GetDaylightName()
Returns a short daylight name of the timezone in the default locale. |
java.lang.String |
GetStandardName()
Returns a short standard name of the timezone in the default locale. |
static XPTimeZone |
GetTimeZone(java.lang.String ID)
Gets the TimeZone for the given ID. |
java.lang.String |
GetTZName()
Returns the ID (e.g. |
java.util.TimeZone |
GetUnderlyingObject()
Returns the platform specific object that this class wraps. |
long |
GetUtcOffset(XPDateTime dateTime)
Gets the time zone offset, for current date, modified in case of daylight savings time. |
boolean |
IsDaylightSavingTime(XPDateTime dateTime)
Queries if the given date is in daylight savings time in this time zone. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPTimeZone()
public XPTimeZone(java.util.TimeZone timeZone)
timeZone
- underlying TimeZone object.Method Detail |
---|
public java.lang.String GetStandardName()
public java.lang.String GetDaylightName()
public java.lang.String GetTZName()
public static XPTimeZone GetCurrentTimeZone()
public static XPTimeZone GetTimeZone(java.lang.String ID)
ID
- the ID for a TimeZone (e.g. America/Los_Angeles)
public static java.lang.String[] GetAvailableTimeZoneNames()
public static java.lang.String[] GetAvailableTimeZoneNames(long offset)
offset
- a value representing offset from GMT.
public boolean IsDaylightSavingTime(XPDateTime dateTime)
dateTime
- - the given Date
public long GetUtcOffset(XPDateTime dateTime)
dateTime
- - the given Date
public java.util.TimeZone GetUnderlyingObject()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |