|
jMobileCore toolkit | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmobilecore.support.TimeZone
public class TimeZone
The TimeZone
represents a time zone offset and daylight savings.
Field Summary | |
---|---|
boolean |
daylight
The current TimeZone daylight setting |
protected static TimeZone |
defTimeZone
The default timezone (GMT) |
protected java.lang.String |
id
The current TimeZone id |
protected static java.lang.String[] |
ids
The list of available timezones |
protected int |
offset
The current TimeZone offset |
protected static int[] |
offsets
Timezone's offsets |
Constructor Summary | |
---|---|
protected |
TimeZone(java.lang.String id,
int offset)
Constructor for the TimeZone class |
Method Summary | |
---|---|
static java.lang.String[] |
getAvailableIDs()
Gets all the available IDs supported. |
static int[] |
getAvailableOffsets()
Gets all the available offsets supported. |
static TimeZone |
getDefault()
Gets the default TimeZone. |
java.lang.String |
getID()
Gets the ID of this time zone. |
int |
getOffset(int era,
int year,
int month,
int day,
int dayOfWeek,
int millis)
Gets the time zone offset, for current date, modified in case of daylight savings. |
int |
getRawOffset()
Returns the amount of time in milliseconds to add to UTC to get standard time in this time zone. |
static TimeZone |
getTimeZone(java.lang.String timezone)
Gets the TimeZone for the given ID. |
boolean |
useDaylightTime()
Gets if this time zone uses daylight savings time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean daylight
protected static final TimeZone defTimeZone
getDefault()
protected java.lang.String id
protected static final java.lang.String[] ids
protected int offset
protected static final int[] offsets
Constructor Detail |
---|
protected TimeZone(java.lang.String id, int offset)
id
- the TimeZone idoffset
- the TimeZone offsetMethod Detail |
---|
public static java.lang.String[] getAvailableIDs()
String
IDs.public static int[] getAvailableOffsets()
getAvailableIDs()
public static TimeZone getDefault()
defTimeZone
public java.lang.String getID()
public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis)
era
- the era of the given date.year
- the year in the given date.month
- the month in the given date. Month is 0-based. e.g., 0 for January.day
- the day-in-month of the given date.dayOfWeek
- the day-of-week of the given date.millis
- the milliseconds in day in standard local time.
public int getRawOffset()
public static TimeZone getTimeZone(java.lang.String timezone)
timezone
- the ID for a TimeZone
ids
public boolean useDaylightTime()
|
jMobileCore toolkit | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |