|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.internal.TimeZone
public class TimeZone
| Field Summary | |
|---|---|
static int |
FLAG_IS_GMT_OFFSET
Deprecated. |
static int |
FLAG_USE_DST
Deprecated. |
static int |
ID_ALASKA
Deprecated. |
static int |
ID_ALEUTIAN
Deprecated. |
static int |
ID_ARIZONA
Deprecated. |
static int |
ID_ATLANTIC
Deprecated. |
static int |
ID_ATLANTIC_PUERTO_RICO
Deprecated. |
static int |
ID_CENTRAL
Deprecated. |
static int |
ID_EASTERN
Deprecated. |
static int |
ID_GMT
Deprecated. |
static int |
ID_GMT_MINUS1
Deprecated. |
static int |
ID_GMT_MINUS10
Deprecated. |
static int |
ID_GMT_MINUS11
Deprecated. |
static int |
ID_GMT_MINUS12
Deprecated. |
static int |
ID_GMT_MINUS2
Deprecated. |
static int |
ID_GMT_MINUS3
Deprecated. |
static int |
ID_GMT_MINUS3_BRASILIA
Deprecated. |
static int |
ID_GMT_MINUS3_GREENLAND
Deprecated. |
static int |
ID_GMT_MINUS330_NEWFOUNDLAND
Deprecated. |
static int |
ID_GMT_MINUS4
Deprecated. |
static int |
ID_GMT_MINUS4_CHILE
Deprecated. |
static int |
ID_GMT_MINUS5
Deprecated. |
static int |
ID_GMT_MINUS6
Deprecated. |
static int |
ID_GMT_MINUS6_EASTER
Deprecated. |
static int |
ID_GMT_MINUS6_SASKATCHEWAN
Deprecated. |
static int |
ID_GMT_MINUS7
Deprecated. |
static int |
ID_GMT_MINUS8
Deprecated. |
static int |
ID_GMT_MINUS9
Deprecated. |
static int |
ID_GMT_PLUS1
Deprecated. |
static int |
ID_GMT_PLUS1_CENTRAL_EUROPE
Deprecated. |
static int |
ID_GMT_PLUS1_NAMIBIA
Deprecated. |
static int |
ID_GMT_PLUS10
Deprecated. |
static int |
ID_GMT_PLUS10_CANBERRA
Deprecated. |
static int |
ID_GMT_PLUS10_GUAM
Deprecated. |
static int |
ID_GMT_PLUS10_TASMANIA
Deprecated. |
static int |
ID_GMT_PLUS10_VLADIVOSTOK
Deprecated. |
static int |
ID_GMT_PLUS1030_LORD_HOWE
Deprecated. |
static int |
ID_GMT_PLUS11
Deprecated. |
static int |
ID_GMT_PLUS11_MAGADAN
Deprecated. |
static int |
ID_GMT_PLUS12
Deprecated. |
static int |
ID_GMT_PLUS12_KAMCHATKA
Deprecated. |
static int |
ID_GMT_PLUS12_NZ
Deprecated. |
static int |
ID_GMT_PLUS1245_CHATHAM
Deprecated. |
static int |
ID_GMT_PLUS13
Deprecated. |
static int |
ID_GMT_PLUS2
Deprecated. |
static int |
ID_GMT_PLUS2_EASTERN_EUROPE
Deprecated. |
static int |
ID_GMT_PLUS2_EGYPT
Deprecated. |
static int |
ID_GMT_PLUS2_ISRAEL
Deprecated. |
static int |
ID_GMT_PLUS3
Deprecated. |
static int |
ID_GMT_PLUS3_IRAQ
Deprecated. |
static int |
ID_GMT_PLUS3_MOSCOW
Deprecated. |
static int |
ID_GMT_PLUS3_NAIROBI
Deprecated. |
static int |
ID_GMT_PLUS330_IRAN
Deprecated. |
static int |
ID_GMT_PLUS4
Deprecated. |
static int |
ID_GMT_PLUS4_BAKU
Deprecated. |
static int |
ID_GMT_PLUS4_VICTORIA
Deprecated. |
static int |
ID_GMT_PLUS430_AFGHANISTAN
Deprecated. |
static int |
ID_GMT_PLUS5
Deprecated. |
static int |
ID_GMT_PLUS5_EKATERINBURG
Deprecated. |
static int |
ID_GMT_PLUS5_ISLAMABAD
Deprecated. |
static int |
ID_GMT_PLUS530_INDIA
Deprecated. |
static int |
ID_GMT_PLUS545_KATHMANDU
Deprecated. |
static int |
ID_GMT_PLUS6
Deprecated. |
static int |
ID_GMT_PLUS6_ALMATY
Deprecated. |
static int |
ID_GMT_PLUS630_RANGOON
Deprecated. |
static int |
ID_GMT_PLUS7
Deprecated. |
static int |
ID_GMT_PLUS7_KRASNOYARSK
Deprecated. |
static int |
ID_GMT_PLUS8
Deprecated. |
static int |
ID_GMT_PLUS8_IRKUTSK
Deprecated. |
static int |
ID_GMT_PLUS8_PERTH
Deprecated. |
static int |
ID_GMT_PLUS9
Deprecated. |
static int |
ID_GMT_PLUS9_YAKUTSK
Deprecated. |
static int |
ID_GMT_PLUS930_ADELAIDE
Deprecated. |
static int |
ID_GMT_PLUS930_DARWIN
Deprecated. |
static int |
ID_GMT_UK
Deprecated. |
static int |
ID_GMT_WESTERN_EUROPE
Deprecated. |
static int |
ID_HAWAII
Deprecated. |
static int |
ID_INDIANA_EAST
Deprecated. |
static int |
ID_INVALID
Deprecated. |
static int |
ID_MOUNTAIN
Deprecated. |
static int |
ID_PACIFIC
Deprecated. |
static int |
ID_SAMOA
Deprecated. |
| Fields inherited from interface danger.SystemStrings |
|---|
ID_CANCEL, ID_DONE, ID_NEXT, ID_PREVIOUS |
| Method Summary | |
|---|---|
static int |
getCount()
Deprecated. Returns the number of supported time zones, not including invisible time zones |
static int |
getCountIncludingInvisibleZones()
Deprecated. Returns the number of supported time zones, including invisible time zones |
static TimeZone |
getDefault()
Deprecated. Return the default time zone. |
String |
getDisplayName()
Deprecated. Returns the name of this TimeZone suitable for user display. |
int |
getID()
Deprecated. Returns the ID of this TimeZone. |
TimeZone |
getJavaTimeZone()
Deprecated. Returns the java time zone |
int |
getOffset()
Deprecated. Returns the offset from GMT NOT adjusted for daylight savings time. |
int |
getOffset(long millis)
Deprecated. Returns this time zone's offset from GMT (in seconds) at a particular moment in time (expressed as the number of milliseconds since 12:00 am GMT, January 1, 1970). |
String |
getOffsetDisplayName()
Deprecated. Returns the offset display name, in -0800 format |
static TimeZone |
getTimeZone(int inID)
Deprecated. Returns the time zone corresponding to the specified ID. |
static TimeZone |
getTimeZoneAt(int inIndex)
Deprecated. Returns the time zone corresponding to the specified index |
static TimeZone |
getTimeZoneFromGMTOffset(int inOffset)
Deprecated. Returns the time zone corresponding to the given GMT offset or null if there is no available time zone with that offset. |
static TimeZone |
getTimeZoneFromQuarterHourGMTOffset(int inOffset,
long millis)
Deprecated. Returns the time zone corresponding to the given GMT offset at the given point in time, or null if there is no available time zone with that offset for that point in time. |
static void |
hasBeenRestored()
Deprecated. This method is called by SysApp when the time zone setting is received from the service. |
boolean |
inDaylightTime(long millis)
Deprecated. Returns whether the given scalar time (expressed as the number of milliseconds since 12:00 am GMT, January 1, 1970) is in daylight time. |
static void |
init()
Deprecated. This method is called by SysApp when the system is starting up. |
boolean |
isGMTOffset()
Deprecated. Returns whether this time zone is a pure GMT offset (as opposed to a region of the Earth, where the laws regarding timekeeping may change from time to time). |
static TimeZone |
newFromJavaTimeZone(TimeZone inTZ)
Deprecated. Create a Danger time zone corresponding to a Java time zone. |
static void |
setDefault(int inID)
Deprecated. Set the default time zone. |
static void |
setDefault(TimeZone inTZ)
Deprecated. Set the default time zone. |
static void |
setGMTOffset(int inOffsetHours)
Deprecated. Set the default time zone via GMT offset. |
boolean |
useDaylightTime()
Deprecated. Returns whether 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 static final int FLAG_USE_DST
public static final int FLAG_IS_GMT_OFFSET
public static final int ID_INVALID
public static final int ID_ATLANTIC
public static final int ID_EASTERN
public static final int ID_CENTRAL
public static final int ID_MOUNTAIN
public static final int ID_PACIFIC
public static final int ID_ALASKA
public static final int ID_ALEUTIAN
public static final int ID_ARIZONA
public static final int ID_INDIANA_EAST
public static final int ID_HAWAII
public static final int ID_SAMOA
public static final int ID_GMT_MINUS12
public static final int ID_GMT_MINUS11
public static final int ID_GMT_MINUS10
public static final int ID_GMT_MINUS9
public static final int ID_GMT_MINUS8
public static final int ID_GMT_MINUS7
public static final int ID_GMT_MINUS6
public static final int ID_GMT_MINUS5
public static final int ID_GMT_MINUS4
public static final int ID_GMT_MINUS3
public static final int ID_GMT_MINUS2
public static final int ID_GMT_MINUS1
public static final int ID_GMT
public static final int ID_GMT_PLUS1
public static final int ID_GMT_PLUS2
public static final int ID_GMT_PLUS3
public static final int ID_GMT_PLUS4
public static final int ID_GMT_PLUS5
public static final int ID_GMT_PLUS6
public static final int ID_GMT_PLUS7
public static final int ID_GMT_PLUS8
public static final int ID_GMT_PLUS9
public static final int ID_GMT_PLUS10
public static final int ID_GMT_PLUS11
public static final int ID_GMT_PLUS12
public static final int ID_GMT_PLUS13
public static final int ID_GMT_MINUS4_CHILE
public static final int ID_GMT_MINUS330_NEWFOUNDLAND
public static final int ID_GMT_MINUS3_BRASILIA
public static final int ID_GMT_MINUS3_GREENLAND
public static final int ID_GMT_UK
public static final int ID_GMT_PLUS1_CENTRAL_EUROPE
public static final int ID_GMT_PLUS2_EASTERN_EUROPE
public static final int ID_GMT_PLUS2_EGYPT
public static final int ID_GMT_PLUS2_ISRAEL
public static final int ID_GMT_PLUS3_IRAQ
public static final int ID_GMT_PLUS3_MOSCOW
public static final int ID_GMT_PLUS330_IRAN
public static final int ID_GMT_PLUS4_BAKU
public static final int ID_GMT_PLUS430_AFGHANISTAN
public static final int ID_GMT_PLUS5_EKATERINBURG
public static final int ID_GMT_PLUS5_ISLAMABAD
public static final int ID_GMT_PLUS530_INDIA
public static final int ID_GMT_PLUS545_KATHMANDU
public static final int ID_GMT_PLUS6_ALMATY
public static final int ID_GMT_PLUS630_RANGOON
public static final int ID_GMT_PLUS7_KRASNOYARSK
public static final int ID_GMT_PLUS8_IRKUTSK
public static final int ID_GMT_PLUS9_YAKUTSK
public static final int ID_GMT_PLUS930_ADELAIDE
public static final int ID_GMT_PLUS930_DARWIN
public static final int ID_GMT_PLUS10_CANBERRA
public static final int ID_GMT_PLUS10_TASMANIA
public static final int ID_GMT_PLUS10_VLADIVOSTOK
public static final int ID_GMT_PLUS11_MAGADAN
public static final int ID_GMT_PLUS12_NZ
public static final int ID_GMT_PLUS12_KAMCHATKA
public static final int ID_GMT_MINUS6_SASKATCHEWAN
public static final int ID_GMT_MINUS6_EASTER
public static final int ID_GMT_WESTERN_EUROPE
public static final int ID_GMT_PLUS1_NAMIBIA
public static final int ID_GMT_PLUS3_NAIROBI
public static final int ID_GMT_PLUS4_VICTORIA
public static final int ID_GMT_PLUS8_PERTH
public static final int ID_GMT_PLUS10_GUAM
public static final int ID_GMT_PLUS1030_LORD_HOWE
public static final int ID_ATLANTIC_PUERTO_RICO
public static final int ID_GMT_PLUS1245_CHATHAM
| Method Detail |
|---|
public static TimeZone newFromJavaTimeZone(TimeZone inTZ)
setDefault(int).
In release 2.4 and earlier of the Danger software, time zones
created this way would have the FLAG_IS_GMT_OFFSET
flag set, even though this is inappropriate for most Java
time zones.
public static void init()
public static void hasBeenRestored()
public int getID()
public String getDisplayName()
public int getOffset()
public String getOffsetDisplayName()
public int getOffset(long millis)
public TimeZone getJavaTimeZone()
public boolean useDaylightTime()
public boolean inDaylightTime(long millis)
public boolean isGMTOffset()
public static TimeZone getTimeZone(int inID)
Note that for historical reasons, certain ID arguments to this method will actually return a TimeZone with a different ID:
ID_GMT_MINUS11 -> ID_SAMOA ID_GMT_MINUS10 -> ID_HAWAII ID_GMT_MINUS9 -> ID_ALASKA ID_GMT_MINUS8 -> ID_PACIFIC ID_GMT_MINUS7 -> ID_ARIZONA ID_GMT_PLUS5 -> ID_GMT_PLUS5_EKATERINBURG ID_GMT_PLUS11 -> ID_GMT_PLUS11_MAGADANSo if you need to be sure that you get exactly the ID you want, iterate through the zone list yourself with
getTimeZoneAt(int) and check the ID of each one yourself.
inID - ID of the requested TimeZonepublic static TimeZone getTimeZoneAt(int inIndex)
inIndex - zero based indexpublic static TimeZone getTimeZoneFromGMTOffset(int inOffset)
inOffset - GMT offset in hours
public static TimeZone getTimeZoneFromQuarterHourGMTOffset(int inOffset,
long millis)
getTimeZoneFromGMTOffset(int), this method prefers
North American timezones (Pacific, Mountain, Central, Eastern) to
generic GMT offset timezones, which is why we require the second
parameter in order to determine whether or not DST is active.
inOffset - GMT offset in fifteen-minute incrementsmillis - the time for which inOffset is valid, expressed as the number
of milliseconds since 12:00 am GMT, January 1, 1970
public static int getCount()
public static int getCountIncludingInvisibleZones()
public static TimeZone getDefault()
public static void setDefault(int inID)
inID - ID representing the TimeZonepublic static void setDefault(TimeZone inTZ)
public static void setGMTOffset(int inOffsetHours)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||