Package net.fortuna.ical4j.model
Class TimeZone
- java.lang.Object
-
- java.util.TimeZone
-
- net.fortuna.ical4j.model.TimeZone
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class TimeZone extends TimeZone
$Id$ Created on 13/09/2005 A Java timezone implementation based on an underlying VTimeZone definition.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
getOffset(int era, int year, int month, int dayOfMonth, int dayOfWeek, int milliseconds)
int
getOffset(long date)
int
getRawOffset()
VTimeZone
getVTimeZone()
int
hashCode()
boolean
inDaylightTime(Date date)
Determines if the specified date is in daylight time according to this timezone.void
setRawOffset(int offsetMillis)
boolean
useDaylightTime()
-
Methods inherited from class java.util.TimeZone
clone, getAvailableIDs, getAvailableIDs, getDefault, getDisplayName, getDisplayName, getDisplayName, getDisplayName, getDSTSavings, getID, getTimeZone, getTimeZone, hasSameRules, observesDaylightTime, setDefault, setID, toZoneId
-
-
-
-
Method Detail
-
getOffset
public final int getOffset(int era, int year, int month, int dayOfMonth, int dayOfWeek, int milliseconds)
-
getRawOffset
public final int getRawOffset()
- Specified by:
getRawOffset
in classTimeZone
-
inDaylightTime
public final boolean inDaylightTime(Date date)
Determines if the specified date is in daylight time according to this timezone. This is done by finding the latest supporting observance for the specified date and identifying whether it is daylight time.- Specified by:
inDaylightTime
in classTimeZone
- Parameters:
date
- a date instance- Returns:
- true if the specified date is in daylight time, otherwise false
-
setRawOffset
public final void setRawOffset(int offsetMillis)
- Specified by:
setRawOffset
in classTimeZone
-
useDaylightTime
public final boolean useDaylightTime()
- Specified by:
useDaylightTime
in classTimeZone
-
getVTimeZone
public final VTimeZone getVTimeZone()
- Returns:
- Returns the VTimeZone backing this instance.
-
-