| Modifier and Type | Field and Description |
|---|---|
| private volatile String | canonicalID
The canonical ID of this zone. |
| private static final int | |
| private static final boolean | |
| private double | finalStartMillis
For date >= finalStartMillis, the finalZone will be used. |
| private int | finalStartYear
For year >= finalStartYear, the finalZone will be used. |
| private SimpleTimeZone | finalZone
A SimpleTimeZone that governs the behavior for years >= finalYear. |
| private transient SimpleTimeZone | |
| private transient TimeZoneTransition | |
| private transient TimeZoneTransition | |
| private transient int | |
| private transient TimeArrayTimeZoneRule[] | |
| private transient InitialTimeZoneRule | |
| private transient volatile boolean | |
| private static final int | |
| private static final int | |
| private int | |
| pack-priv static final long | |
| private int | transitionCount
Number of transitions, 0..~370 |
| private transient boolean | |
| private long[] | transitionTimes64
Time of each transition in seconds from 1970 epoch. |
| private int | typeCount
Number of types, 1..255 |
| private byte[] | typeMapData
Type description data, consisting of transitionCount uint8_t type indices (from 0..typeCount-1). |
| private int[] | typeOffsets
Offset from GMT in seconds for each type. |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | OlsonTimeZone(UResourceBundle
the top-level zoneinfo resource bundle. This is used
to lookup the rule that top, UResourceBundle res may refer to, if there is one.the resource bundle of the zone to be constructed res, String time zone ID id)Construct from a resource bundle |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public TimeZone | cloneAsThawed()
Overrides com. Implements com. |
| private void | |
| private void | |
| private int | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides com. |
| public TimeZone | freeze()
Overrides com. Implements com. |
| public String | |
| public int | getDSTSavings()
Overrides com. |
| private void | getHistoricalOffset(long date, boolean local, int NonExistingTimeOpt, int DuplicatedTimeOpt, int[] offsets)
|
| private int | |
| public TimeZoneTransition | getNextTransition(long
The base time. base, boolean Whether the base time is inclusive or not. inclusive)Implements abstract com. ICU |
| public int | getOffset(int
the era of the given date. era, int the year in the given date. year, int the month in the given date.
Month is 0-based. e.g., 0 for January. month, int the day-in-month of the given date. day, int the day-of-week of the given date. dayOfWeek, int the millis in day in standard local time. milliseconds)Implements abstract com. |
| public int | |
| public void | getOffset(long
moment in time for which to return offsets, in
units of milliseconds from January 1, 1970 0:00 GMT, either GMT
time or local wall time, depending on date, boolean local.if true, local, int[] date is local wall time; otherwise it
is in GMT time.output parameter to receive the raw offset, that
is, the offset not including DST adjustments, in offsets[0],
and the DST offset, that is, the offset to be added to
offsets)rawOffset to obtain the total offset between local and GMT
time, in offsets[1]. If DST is not in effect, the DST offset is
zero; otherwise it is a positive value, typically one hour.Overrides com. |
| public void | getOffsetFromLocal(long date, BasicTimeZone.
Overrides com. ICU |
| public TimeZoneTransition | getPreviousTransition(long
The base time. base, boolean Whether the base time is inclusive or not. inclusive)Implements abstract com. ICU |
| public int | getRawOffset()
Implements abstract com. |
| public TimeZoneRule[] | |
| public int | |
| public boolean | hasSameRules(TimeZone
the other)TimeZone object to be compared withOverrides com. |
| public boolean | inDaylightTime(Date
the given Date. date)Implements abstract com. |
| private int | |
| private int | |
| private synchronized void | |
| public boolean | isFrozen()
Overrides com. Implements com. |
| private static UResourceBundle | |
| public boolean | observesDaylightTime()
Queries if this time zone is in daylight saving time or will observe
daylight saving time at any future time.
|
| private int | |
| private void | |
| public void | setID(String
the new time zone ID. id)Overrides com. |
| public void | setRawOffset(int
the given base time zone offset to GMT. offsetMillis)Implements abstract com. |
| public String | |
| public boolean | useDaylightTime()
Implements abstract com. |
| private int |
| canonicalID | back to summary |
|---|---|
| private volatile String canonicalID The canonical ID of this zone. Initialized when | |
| currentSerialVersion | back to summary |
|---|---|
| private static final int currentSerialVersion | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| finalStartMillis | back to summary |
|---|---|
| private double finalStartMillis For date >= finalStartMillis, the finalZone will be used. | |
| finalStartYear | back to summary |
|---|---|
| private int finalStartYear For year >= finalStartYear, the finalZone will be used. | |
| finalZone | back to summary |
|---|---|
| private SimpleTimeZone finalZone A SimpleTimeZone that governs the behavior for years >= finalYear. If and only if finalYear == INT32_MAX then finalZone == 0. | |
| finalZoneWithStartYear | back to summary |
|---|---|
| private transient SimpleTimeZone finalZoneWithStartYear | |
| firstFinalTZTransition | back to summary |
|---|---|
| private transient TimeZoneTransition firstFinalTZTransition | |
| firstTZTransition | back to summary |
|---|---|
| private transient TimeZoneTransition firstTZTransition | |
| firstTZTransitionIdx | back to summary |
|---|---|
| private transient int firstTZTransitionIdx | |
| historicRules | back to summary |
|---|---|
| private transient TimeArrayTimeZoneRule[] historicRules | |
| initialRule | back to summary |
|---|---|
| private transient InitialTimeZoneRule initialRule | |
| isFrozen | back to summary |
|---|---|
| private transient volatile boolean isFrozen | |
| MAX_OFFSET_SECONDS | back to summary |
|---|---|
| private static final int MAX_OFFSET_SECONDS | |
| SECONDS_PER_DAY | back to summary |
|---|---|
| private static final int SECONDS_PER_DAY | |
| serialVersionOnStream | back to summary |
|---|---|
| private int serialVersionOnStream | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| transitionCount | back to summary |
|---|---|
| private int transitionCount Number of transitions, 0..~370 | |
| transitionRulesInitialized | back to summary |
|---|---|
| private transient boolean transitionRulesInitialized | |
| transitionTimes64 | back to summary |
|---|---|
| private long[] transitionTimes64 Time of each transition in seconds from 1970 epoch. | |
| typeCount | back to summary |
|---|---|
| private int typeCount Number of types, 1..255 | |
| typeMapData | back to summary |
|---|---|
| private byte[] typeMapData Type description data, consisting of transitionCount uint8_t type indices (from 0..typeCount-1). Length is equal to transitionCount | |
| typeOffsets | back to summary |
|---|---|
| private int[] typeOffsets Offset from GMT in seconds for each type. Length is equal to typeCount | |
| ZONEINFORES | back to summary |
|---|---|
| private static final String ZONEINFORES | |
| OlsonTimeZone | back to summary |
|---|---|
| public OlsonTimeZone(UResourceBundle top, UResourceBundle res, String id) Construct from a resource bundle
| |
| OlsonTimeZone | back to summary |
|---|---|
| public OlsonTimeZone(String id) | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides com. Doc from com. Overrides clone.
| |
| cloneAsThawed | back to summary |
|---|---|
| public TimeZone cloneAsThawed() Overrides com. Implements com. Doc from com. Provides for the clone operation. Any clone is initially unfrozen.
| |
| construct | back to summary |
|---|---|
| private void construct(UResourceBundle top, UResourceBundle res, String id) | |
| constructEmpty | back to summary |
|---|---|
| private void constructEmpty() Construct a GMT+0 zone with no transitions. This is done when a constructor fails so the resultant object is well-behaved. | |
| dstOffsetAt | back to summary |
|---|---|
| private int dstOffsetAt(int transIdx) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides com. Doc from com. Overrides equals.
| |
| freeze | back to summary |
|---|---|
| public TimeZone freeze() Overrides com. Implements com. Doc from com. Freezes the object.
| |
| getCanonicalID | back to summary |
|---|---|
| public String getCanonicalID() Returns the canonical ID of this system time zone | |
| getDSTSavings | back to summary |
|---|---|
| public int getDSTSavings() Overrides com. TimeZone API Returns the amount of time to be added to local standard time to get local wall clock time.
| |
| getHistoricalOffset | back to summary |
|---|---|
| private void getHistoricalOffset(long date, boolean local, int NonExistingTimeOpt, int DuplicatedTimeOpt, int[] offsets) | |
| getInt | back to summary |
|---|---|
| private int getInt(byte val) | |
| getNextTransition | back to summary |
|---|---|
| public TimeZoneTransition getNextTransition(long base, boolean inclusive) Implements abstract com. Doc from com. ICU Example code:{@. jcite com.ibm.icu.samples.util.timezone.BasicTimeZoneExample:---getNextTransitionExample}
| |
| getOffset | back to summary |
|---|---|
| public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) Implements abstract com. Doc from com. 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.
| |
| getOffset | back to summary |
|---|---|
| public int getOffset(int era, int year, int month, int dom, int dow, int millis, int monthLength) TimeZone API. | |
| getOffset | back to summary |
|---|---|
| public void getOffset(long date, boolean local, int[] offsets) Overrides com. TimeZone API.
| |
| getOffsetFromLocal | back to summary |
|---|---|
| public void getOffsetFromLocal(long date, BasicTimeZone. Overrides com. Doc from com. ICU
| |
| getPreviousTransition | back to summary |
|---|---|
| public TimeZoneTransition getPreviousTransition(long base, boolean inclusive) Implements abstract com. Doc from com. ICU Example code:{@. jcite com.ibm.icu.samples.util.timezone.BasicTimeZoneExample:---getPreviousTransitionExample}
| |
| getRawOffset | back to summary |
|---|---|
| public int getRawOffset() Implements abstract com. Doc from com. Gets unmodified offset, NOT modified in case of daylight savings. This is the offset to add to UTC to get local time.
| |
| getTimeZoneRules | back to summary |
|---|---|
| public TimeZoneRule[] getTimeZoneRules() Implements abstract com. Doc from com. ICU TimeZoneRule which represents the rule
of this time zone object. The first element in the result array will
be the InitialTimeZoneRule instance for the initial rule.
The rest will be either AnnualTimeZoneRule or
TimeArrayTimeZoneRule instances representing transitions.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. Doc from com. Overrides hashCode.
| |
| hasSameRules | back to summary |
|---|---|
| public boolean hasSameRules(TimeZone other) Overrides com. Doc from com. Returns true if this zone has the same rule and offset as another zone. That is, if this zone differs only in ID, if at all. Returns false if the other zone is null. | |
| inDaylightTime | back to summary |
|---|---|
| public boolean inDaylightTime(Date date) Implements abstract com. Doc from com. Queries if the given date is in daylight savings time in this time zone. | |
| initialDstOffset | back to summary |
|---|---|
| private int initialDstOffset() | |
| initialRawOffset | back to summary |
|---|---|
| private int initialRawOffset() | |
| initTransitionRules | back to summary |
|---|---|
| private synchronized void initTransitionRules() | |
| isFrozen | back to summary |
|---|---|
| public boolean isFrozen() Overrides com. Implements com. Doc from com. Determines whether the object has been frozen or not.
| |
| loadRule | back to summary |
|---|---|
| private static UResourceBundle loadRule(UResourceBundle top, String ruleid) | |
| observesDaylightTime | back to summary |
|---|---|
| public boolean observesDaylightTime() Overrides com. Doc from com. Queries if this time zone is in daylight saving time or will observe daylight saving time at any future time. The default implementation in this class returns Note This method was added for
ICU's TimeZone subclass implementations override this method to support the same behavior
with
| |
| rawOffsetAt | back to summary |
|---|---|
| private int rawOffsetAt(int transIdx) | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException | |
| setID | back to summary |
|---|---|
| public void setID(String id) Overrides com. Doc from com. Sets the time zone ID. This does not change any other data in the time zone object. | |
| setRawOffset | back to summary |
|---|---|
| public void setRawOffset(int offsetMillis) Implements abstract com. Doc from com. Sets the base time zone offset to GMT. This is the offset to add to UTC to get local time.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| useDaylightTime | back to summary |
|---|---|
| public boolean useDaylightTime() Implements abstract com. Doc from com. Queries if this time zone uses daylight savings time.
| |
| zoneOffsetAt | back to summary |
|---|---|
| private int zoneOffsetAt(int transIdx) | |