InitialTimeZoneRule represents a time zone rule
representing a time zone effective from the beginning and
has no actual start times.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | InitialTimeZoneRule(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)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. prevRawOffset, 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. prevRawOffset, 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 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.
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| InitialTimeZoneRule | back to summary |
|---|---|
| public InitialTimeZoneRule(String name, int rawOffset, int dstSavings) 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 prevRawOffset, 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 prevRawOffset, int prevDSTSavings, boolean inclusive) Implements abstract com. Doc from com. Gets the most recent time when this rule takes effect before the specified time.
| |
| 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 | |