java.util
Class ZoneInfoDB.MinimalTimeZone
java.lang.Object
java.util.TimeZone
java.util.ZoneInfoDB.MinimalTimeZone
- All Implemented Interfaces:
- Serializable, Cloneable
- Enclosing class:
- ZoneInfoDB
static class ZoneInfoDB.MinimalTimeZone
- extends TimeZone
|
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 |
ZoneInfoDB.MinimalTimeZone
public ZoneInfoDB.MinimalTimeZone(int offset)
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.ADyear - the yearmonth - the Calendar monthday - the day of the monthdayOfWeek - the Calendar day of the weekmillis - 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
Please submit a feedback, bug or feature