| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private final int | |
| pack-priv static final long | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public int | getOffset(final int era, final int year, final int month, final int day, final int dayOfWeek, final int milliseconds)
Implements abstract java. Gets the time zone offset, for current date, modified in case of daylight savings. |
| public int | getRawOffset()
Implements abstract java. Returns the amount of time in milliseconds to add to UTC to get standard time in this time zone. |
| public int | |
| public boolean | inDaylightTime(final Date date)
Implements abstract java. Queries if the given |
| public void | setRawOffset(final int offsetMillis)
Implements abstract java. Sets the base time zone offset to GMT. |
| public String | |
| private static StringBuilder | |
| public boolean | useDaylightTime()
Implements abstract java. Queries if this |
| HOURS_PER_DAY | back to summary |
|---|---|
| private static final int HOURS_PER_DAY | |
| MILLISECONDS_PER_MINUTE | back to summary |
|---|---|
| private static final int MILLISECONDS_PER_MINUTE | |
| MINUTES_PER_HOUR | back to summary |
|---|---|
| private static final int MINUTES_PER_HOUR | |
| offset | back to summary |
|---|---|
| private final int offset | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| zoneId | back to summary |
|---|---|
| private final String zoneId Hides java. | |
| GmtTimeZone | back to summary |
|---|---|
| pack-priv GmtTimeZone(final boolean negate, final int hours, final int minutes) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) 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.
| |
| getID | back to summary |
|---|---|
| public String getID() Overrides java. Doc from java. Gets the ID of this time zone.
| |
| getOffset | back to summary |
|---|---|
| public int getOffset(final int era, final int year, final int month, final int day, 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
| |
| getRawOffset | back to summary |
|---|---|
| public 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
| |
| 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 boolean inDaylightTime(final Date date) Implements abstract java. Doc from java. Queries if the given
| |
| setRawOffset | back to summary |
|---|---|
| public 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
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| twoDigits | back to summary |
|---|---|
| private static StringBuilder twoDigits(final StringBuilder sb, final int n) | |
| useDaylightTime | back to summary |
|---|---|
| public boolean useDaylightTime() Implements abstract java. Doc from java. Queries if this If an underlying
| |