|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimeZone
java.util.ZoneInfo
class ZoneInfo
| Field Summary |
|---|
| Fields inherited from class java.util.TimeZone |
|---|
GMT, LONG, SHORT |
| Constructor Summary | |
|---|---|
ZoneInfo(String name,
int[] transitions,
byte[] type,
int[] gmtoff,
byte[] isdst,
byte[] abbrev,
byte[] data,
int abbrevoff)
|
|
| Method Summary | |
|---|---|
int |
getOffset(int era,
int year,
int month,
int day,
int dayOfWeek,
int millis)
Gets the offset from GMT of this TimeZone for the specified date and time. |
int |
getOffset(long when)
Gets the offset from GMT of this TimeZone for the specified date. |
int |
getRawOffset()
Gets the offset for standard time from GMT for this TimeZone. |
static TimeZone |
getTimeZone(String name)
|
boolean |
inDaylightTime(Date when)
Returns if the specified Date is in the daylight savings time period for this TimeZone. |
void |
setRawOffset(int off)
Sets the offset for standard time from GMT for this TimeZone. |
boolean |
useDaylightTime()
Returns if this TimeZone has a daylight savings time period. |
| Methods inherited from class java.util.TimeZone |
|---|
clone, getAvailableIDs, getAvailableIDs, getDefault, getDisplayName, getDisplayName, getDisplayName, getDisplayName, getDSTSavings, getID, hasSameRules, setDefault, setID |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ZoneInfo(String name,
int[] transitions,
byte[] type,
int[] gmtoff,
byte[] isdst,
byte[] abbrev,
byte[] data,
int abbrevoff)
| Method Detail |
|---|
public static TimeZone getTimeZone(String name)
public int getOffset(int era,
int year,
int month,
int day,
int dayOfWeek,
int millis)
TimeZone
getOffset in class TimeZoneera - the GregorianCalendar era, either GregorianCalendar.BC or
GregorianCalendar.ADyear - the yearmonth - the Calendar monthday - the day of the monthdayOfWeek - the Calendar day of the weekmillis - the time of day in milliseconds
public int getOffset(long when)
TimeZone
getOffset in class TimeZonewhen - the date in milliseconds since January 1, 1970 00:00:00 GMT
public int getRawOffset()
TimeZone
getRawOffset in class TimeZonepublic void setRawOffset(int off)
TimeZone
setRawOffset in class TimeZoneoff - the offset from GMT in millisecondspublic boolean inDaylightTime(Date when)
TimeZone
inDaylightTime in class TimeZonewhen - a Date
public boolean useDaylightTime()
TimeZone
useDaylightTime in class TimeZone
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||