Build 1.0_r1(from source)

java.util
Class ZoneInfoDB.MinimalTimeZone

java.lang.Object
  extended by java.util.TimeZone
      extended by java.util.ZoneInfoDB.MinimalTimeZone
All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
ZoneInfoDB

static class ZoneInfoDB.MinimalTimeZone
extends TimeZone


Field Summary
 
Fields inherited from class java.util.TimeZone
GMT, LONG, SHORT
 
Constructor Summary
ZoneInfoDB.MinimalTimeZone(int offset)
           
 
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 getRawOffset()
          Gets the offset for standard time from GMT for this TimeZone.
 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, getOffset, getTimeZone, hasSameRules, setDefault, setID
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoneInfoDB.MinimalTimeZone

public ZoneInfoDB.MinimalTimeZone(int offset)
Method Detail

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

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