| Package | Description |
|---|---|
| net.time4j.tz |
General timezone-API.
|
| net.time4j.tz.model |
Permits the construction of historized or rule-based timezones.
|
| Modifier and Type | Method and Description |
|---|---|
ZonalTransition |
TransitionHistory.getConflictTransition(GregorianDate localDate,
WallTime localTime)
Returns the conflict transition where given local timestamp
falls either in a gap or in an overlap on the local timeline.
|
ZonalTransition |
TransitionHistory.getStartTransition(UnixTime ut)
Queries the last transition which defines the offset
for given global timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
default Optional<ZonalTransition> |
TransitionHistory.findConflictTransition(GregorianDate localDate,
WallTime localTime)
Returns the conflict transition where given local timestamp
falls either in a gap or in an overlap on the local timeline.
|
Optional<ZonalTransition> |
TransitionHistory.findNextTransition(UnixTime ut)
Queries the next transition after given global timestamp.
|
default Optional<ZonalTransition> |
TransitionHistory.findPreviousTransition(UnixTime ut)
Queries the previous transition which defines the offset
for a global timestamp immediately before given reference timestamp.
|
default Optional<ZonalTransition> |
TransitionHistory.findStartTransition(UnixTime ut)
Queries the last transition which defines the offset
for given global timestamp.
|
List<ZonalTransition> |
TransitionHistory.getStdTransitions()
Return the offset transitions from UNIX epoch [1970-01-01T00:00Z]
until about one year after the current timestamp.
|
List<ZonalTransition> |
TransitionHistory.getTransitions(UnixTime startInclusive,
UnixTime endExclusive)
Returns the defined transitions in given POSIX-interval.
|
| Modifier and Type | Method and Description |
|---|---|
int |
ZonalTransition.compareTo(ZonalTransition other)
Compares preferrably the timeline order based on the global
timestamps of transitions, otherwise the total shift and finally
the extra shift.
|
| Modifier and Type | Method and Description |
|---|---|
static TransitionHistory |
TransitionModel.of(List<ZonalTransition> transitions)
Creates a new array-based and finite transition history.
|
static TransitionHistory |
TransitionModel.of(ZonalOffset initialOffset,
List<ZonalTransition> transitions,
List<DaylightSavingRule> rules)
Creates a transition history of both history transitions and
rules for future transitions as well.
|
Copyright © 2014–2021. All rights reserved.