java.lang.Object
java.util.TimeZone
net.fortuna.ical4j.model.TimeZone
- All Implemented Interfaces:
Serializable,Cloneable
$Id$
Created on 13/09/2005
A Java timezone implementation based on an underlying VTimeZone
definition.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal intgetOffset(int era, int year, int month, int dayOfMonth, int dayOfWeek, int milliseconds) intgetOffset(long date) final intfinal VTimeZoneinthashCode()final booleaninDaylightTime(Date date) Determines if the specified date is in daylight time according to this timezone.final voidsetRawOffset(int offsetMillis) final booleanMethods inherited from class java.util.TimeZone
clone, getAvailableIDs, getAvailableIDs, getDefault, getDisplayName, getDisplayName, getDisplayName, getDisplayName, getDSTSavings, getID, getTimeZone, getTimeZone, hasSameRules, observesDaylightTime, setDefault, setID, toZoneId
-
Constructor Details
-
TimeZone
Constructs a new instance based on the specified VTimeZone.- Parameters:
vTimeZone- a VTIMEZONE object instance
-
TimeZone
-
-
Method Details
-
getOffset
public final int getOffset(int era, int year, int month, int dayOfMonth, int dayOfWeek, int milliseconds) -
getOffset
public int getOffset(long date) -
getRawOffset
public final int getRawOffset()- Specified by:
getRawOffsetin classTimeZone
-
inDaylightTime
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:
inDaylightTimein 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:
setRawOffsetin classTimeZone
-
useDaylightTime
public final boolean useDaylightTime()- Specified by:
useDaylightTimein classTimeZone
-
getVTimeZone
- Returns:
- Returns the VTimeZone backing this instance.
-
equals
-
hashCode
public int hashCode()
-