Created on 13/09/2005
A Java timezone implementation based on an underlying VTimeZone definition.
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final boolean | |
| private final int | |
| private static final long | |
| private final VTimeZone |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public final int | getOffset(final int
the era of the given date. era, final int the year in the given date. year, final int the month in the given date.
Month is 0-based. e.g., 0 for January. month, final int the day-in-month of the given date. dayOfMonth, final int the day-of-week of the given date. dayOfWeek, final int the milliseconds in day in standard
local time. milliseconds)Implements abstract java. Gets the time zone offset, for current date, modified in case of daylight savings. |
| public int | getOffset(long
the date represented in milliseconds since January 1, 1970 00:00:00 GMT date)Overrides java. Returns the offset of this time zone from UTC at the specified date. |
| public final int | getRawOffset()
Implements abstract java. Returns the amount of time in milliseconds to add to UTC to get standard time in this time zone. |
| private static int | |
| public final VTimeZone | |
| public int | |
| public final boolean | Returns: true if the specified date is in daylight time, otherwise falsea date instance date)Implements abstract java. Determines if the specified date is in daylight time according to this timezone. |
| private boolean | |
| public final void | setRawOffset(final int
the given base time zone offset to GMT. offsetMillis)Implements abstract java. Sets the base time zone offset to GMT. |
| public final boolean | useDaylightTime()
Implements abstract java. Queries if this |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| negativeDstSupported | back to summary |
|---|---|
| private final boolean negativeDstSupported | |
| rawOffset | back to summary |
|---|---|
| private final int rawOffset | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| vTimeZone | back to summary |
|---|---|
| private final VTimeZone vTimeZone | |
| TimeZone | back to summary |
|---|---|
| public TimeZone(final VTimeZone vTimeZone) Constructs a new instance based on the specified VTimeZone.
| |
| TimeZone | back to summary |
|---|---|
| public TimeZone(final VTimeZone vTimeZone, boolean negativeDstSupported) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getOffset | back to summary |
|---|---|
| public final int getOffset(final int era, final int year, final int month, final int dayOfMonth, final int dayOfWeek, final int milliseconds) Implements abstract java. Doc from java. Gets the time zone offset, for current date, modified in case of daylight savings. This is the offset to add to UTC to get local time.
This method returns a historically correct offset if an
underlying
| |
| getOffset | back to summary |
|---|---|
| public int getOffset(long date) Overrides java. Doc from java. Returns the offset of this time zone from UTC at the specified date. If Daylight Saving Time is in effect at the specified date, the offset value is adjusted with the amount of daylight saving. This method returns a historically correct offset value if an underlying TimeZone implementation subclass supports historical Daylight Saving Time schedule and GMT offset changes.
| |
| getRawOffset | back to summary |
|---|---|
| public final int getRawOffset() Implements abstract java. Doc from java. Returns the amount of time in milliseconds to add to UTC to get standard time in this time zone. Because this value is not affected by daylight saving time, it is called raw offset.
If an underlying
| |
| getRawOffset | back to summary |
|---|---|
| private static int getRawOffset(VTimeZone vt) | |
| getVTimeZone | back to summary |
|---|---|
public final VTimeZone getVTimeZone()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| inDaylightTime | back to summary |
|---|---|
| public final boolean inDaylightTime(final Date date) Implements abstract java. 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. | |
| isNegativeOffset | back to summary |
|---|---|
| private boolean isNegativeOffset(Observance observance) | |
| setRawOffset | back to summary |
|---|---|
| public final void setRawOffset(final int offsetMillis) Implements abstract java. Doc from java. Sets the base time zone offset to GMT. This is the offset to add to UTC to get local time.
If an underlying
| |
| useDaylightTime | back to summary |
|---|---|
| public final boolean useDaylightTime() Implements abstract java. Doc from java. Queries if this If an underlying
| |