Build 1.0_r1(from source)

java.util
Class ZoneInfo

java.lang.Object
  extended by java.util.TimeZone
      extended by java.util.ZoneInfo
All Implemented Interfaces:
Serializable, Cloneable

 class ZoneInfo
extends TimeZone


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

ZoneInfo(String name,
         int[] transitions,
         byte[] type,
         int[] gmtoff,
         byte[] isdst,
         byte[] abbrev,
         byte[] data,
         int abbrevoff)
Method Detail

getTimeZone

public static TimeZone getTimeZone(String name)

getOffset

public int getOffset(int era,
                     int year,
                     int month,
                     int day,
                     int dayOfWeek,
                     int millis)
Description copied from class: TimeZone
Gets the offset from GMT of this TimeZone for the specified date and time. The offset includes daylight savings time if the specified date and time are within the daylight savings time period.

Specified by:
getOffset in class TimeZone
Parameters:
era - the GregorianCalendar era, either GregorianCalendar.BC or GregorianCalendar.AD
year - the year
month - the Calendar month
day - the day of the month
dayOfWeek - the Calendar day of the week
millis - the time of day in milliseconds
Returns:
the offset from GMT in milliseconds

getOffset

public int getOffset(long when)
Description copied from class: TimeZone
Gets the offset from GMT of this TimeZone for the specified date. The offset includes daylight savings time if the specified date is within the daylight savings time period.

Overrides:
getOffset in class TimeZone
Parameters:
when - the date in milliseconds since January 1, 1970 00:00:00 GMT
Returns:
the offset from GMT in milliseconds

getRawOffset

public int getRawOffset()
Description copied from class: TimeZone
Gets the offset for standard time from GMT for this TimeZone.

Specified by:
getRawOffset in class TimeZone
Returns:
the offset from GMT in milliseconds

setRawOffset

public void setRawOffset(int off)
Description copied from class: TimeZone
Sets the offset for standard time from GMT for this TimeZone.

Specified by:
setRawOffset in class TimeZone
Parameters:
off - the offset from GMT in milliseconds

inDaylightTime

public boolean inDaylightTime(Date when)
Description copied from class: TimeZone
Returns if the specified Date is in the daylight savings time period for this TimeZone.

Specified by:
inDaylightTime in class TimeZone
Parameters:
when - a Date
Returns:
true when the Date is in the daylight savings time period, false otherwise

useDaylightTime

public boolean useDaylightTime()
Description copied from class: TimeZone
Returns if this TimeZone has a daylight savings time period.

Specified by:
useDaylightTime in class TimeZone
Returns:
true if this time zone has a daylight savings time period, false otherwise

Build 1.0_r1(from source)

Please submit a feedback, bug or feature