TimeArrayTimeZoneRule represents a time zone rule whose start times are
defined by an array of milliseconds since the standard base time.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private final long[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | TimeArrayTimeZoneRule(String
The time zone name. name, int The UTC offset of its standard time in milliseconds. rawOffset, int The amount of daylight saving offset adjustment in
milliseconds. If this ia a rule for standard time,
the value of this argument is 0. dstSavings, long[] The start times in milliseconds since the base time
(January 1, 1970, 00:00:00). startTimes, int The time type of the start times, which is one of
timeType)DataTimeRule.WALL_TIME, STANDARD_TIME
and UTC_TIME.Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public Date | getFinalStart(int
The standard time offset from UTC before this rule
takes effect in milliseconds. prevRawOffset, int The amount of daylight saving offset from the
standard time. prevDSTSavings)Implements abstract com. |
| public Date | getFirstStart(int
The standard time offset from UTC before this rule
takes effect in milliseconds. prevRawOffset, int The amount of daylight saving offset from the
standard time. prevDSTSavings)Implements abstract com. |
| public Date | getNextStart(long
The first time after this time is returned. base, int The standard time offset from UTC before this rule
takes effect in milliseconds. prevOffset, int The amount of daylight saving offset from the
standard time. prevDSTSavings, boolean Whether the base time is inclusive or not. inclusive)Implements abstract com. |
| public Date | getPreviousStart(long
The most recent time when this rule takes effect before
this time is returned. base, int The standard time offset from UTC before this rule
takes effect in milliseconds. prevOffset, int The amount of daylight saving offset from the
standard time. prevDSTSavings, boolean Whether the base time is inclusive or not. inclusive)Implements abstract com. |
| public long[] | Returns: An array of the start times in milliseconds since the base time (January 1, 1970, 00:00:00 GMT).Gets the array of start times used by this rule. |
| public int | Returns: The time type used of the start times used by this rule.Gets the time type of the start times used by this rule. |
| private long | |
| public boolean | isEquivalentTo(TimeZoneRule
The other)TimeZoneRule object to be compared with.Overrides com. |
| public boolean | isTransitionRule()
Implements abstract com. TimeZoneRule has one or more start times.
|
| public String | toString()
Overrides com. String representation of this TimeArrayTimeZoneRule object.
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| startTimes | back to summary |
|---|---|
| private final long[] startTimes | |
| timeType | back to summary |
|---|---|
| private final int timeType | |
| TimeArrayTimeZoneRule | back to summary |
|---|---|
| public TimeArrayTimeZoneRule(String name, int rawOffset, int dstSavings, long[] startTimes, int timeType) Constructs a
| |
| getFinalStart | back to summary |
|---|---|
| public Date getFinalStart(int prevRawOffset, int prevDSTSavings) Implements abstract com. Doc from com. Gets the final time when this rule takes effect.
| |
| getFirstStart | back to summary |
|---|---|
| public Date getFirstStart(int prevRawOffset, int prevDSTSavings) Implements abstract com. Doc from com. Gets the very first time when this rule takes effect. | |
| getNextStart | back to summary |
|---|---|
| public Date getNextStart(long base, int prevOffset, int prevDSTSavings, boolean inclusive) Implements abstract com. Doc from com. Gets the first time when this rule takes effect after the specified time.
| |
| getPreviousStart | back to summary |
|---|---|
| public Date getPreviousStart(long base, int prevOffset, int prevDSTSavings, boolean inclusive) Implements abstract com. Doc from com. Gets the most recent time when this rule takes effect before the specified time.
| |
| getStartTimes | back to summary |
|---|---|
| public long[] getStartTimes() Gets the array of start times used by this rule.
| |
| getTimeType | back to summary |
|---|---|
| public int getTimeType() Gets the time type of the start times used by this rule. The return value
is either
| |
| getUTC | back to summary |
|---|---|
| private long getUTC(long time, int raw, int dst) | |
| isEquivalentTo | back to summary |
|---|---|
| public boolean isEquivalentTo(TimeZoneRule other) Overrides com. Doc from com. Returns if this rule represents the same rule and offsets as another.
When two
| |
| isTransitionRule | back to summary |
|---|---|
| public boolean isTransitionRule() Implements abstract com. Doc from com. Returns if this | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Returns a
| |