|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimeZone
com.sun.cldc.util.j2me.TimeZoneImpl
public class TimeZoneImpl
This class provides the time zone implementations for J2ME CLDC/MIDP. By default, the only supported time zone is UTC/GMT. Vendor-specific implementations may provide additional time zones.
TimeZone| Constructor Summary | |
|---|---|
TimeZoneImpl()
|
|
| Method Summary | |
|---|---|
String |
getID()
Gets the ID of this time zone. |
String[] |
getIDs()
Gets all the available IDs supported. |
TimeZone |
getInstance(String ID)
Gets the TimeZone for the given ID. |
int |
getOffset(int era,
int year,
int month,
int day,
int dayOfWeek,
int millis)
Gets offset, for current date, modified in case of daylight savings. |
int |
getRawOffset()
Gets the GMT offset for this time zone. |
boolean |
useDaylightTime()
Queries if this time zone uses Daylight Savings Time. |
| Methods inherited from class java.util.TimeZone |
|---|
getAvailableIDs, getDefault, getTimeZone |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeZoneImpl()
| Method Detail |
|---|
public int getOffset(int era,
int year,
int month,
int day,
int dayOfWeek,
int millis)
getOffset in class TimeZoneera - The era of the given date (0 = BC, 1 = AD).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.
IllegalArgumentException - the era, month, day,
dayOfWeek, or millis parameters are out of rangepublic int getRawOffset()
getRawOffset in class TimeZonepublic boolean useDaylightTime()
useDaylightTime in class TimeZonepublic String getID()
getID in class TimeZonepublic TimeZone getInstance(String ID)
TimeZone for the given ID.
ID - the ID for a TimeZone, either an abbreviation such as
"GMT", or a full name such as "America/Los_Angeles".
The only time zone ID that is required to be supported is "GMT", though typically, the timezones for the regions where the device is sold should be supported.
TimeZone, or null if the given ID
cannot be understood.public String[] getIDs()
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||