Package | Description |
---|---|
java.time.zone |
Support for time-zones and their rules.
|
Modifier and Type | Method and Description |
---|---|
ZoneOffsetTransition |
ZoneOffsetTransitionRule.createTransition(int year)
Creates a transition instance for the specified year.
|
ZoneOffsetTransition |
ZoneRules.getTransition(LocalDateTime localDateTime)
Gets the offset transition applicable at the specified local date-time in these rules.
|
ZoneOffsetTransition |
ZoneRules.nextTransition(Instant instant)
Gets the next transition after the specified instant.
|
static ZoneOffsetTransition |
ZoneOffsetTransition.of(LocalDateTime transition,
ZoneOffset offsetBefore,
ZoneOffset offsetAfter)
Obtains an instance defining a transition between two offsets.
|
ZoneOffsetTransition |
ZoneRules.previousTransition(Instant instant)
Gets the previous transition before the specified instant.
|
Modifier and Type | Method and Description |
---|---|
List<ZoneOffsetTransition> |
ZoneRules.getTransitions()
Gets the complete list of fully defined transitions.
|
Modifier and Type | Method and Description |
---|---|
int |
ZoneOffsetTransition.compareTo(ZoneOffsetTransition transition)
Compares this transition to another based on the transition instant.
|
Modifier and Type | Method and Description |
---|---|
static ZoneRules |
ZoneRules.of(ZoneOffset baseStandardOffset,
ZoneOffset baseWallOffset,
List<ZoneOffsetTransition> standardOffsetTransitionList,
List<ZoneOffsetTransition> transitionList,
List<ZoneOffsetTransitionRule> lastRules)
Obtains an instance of a ZoneRules.
|
static ZoneRules |
ZoneRules.of(ZoneOffset baseStandardOffset,
ZoneOffset baseWallOffset,
List<ZoneOffsetTransition> standardOffsetTransitionList,
List<ZoneOffsetTransition> transitionList,
List<ZoneOffsetTransitionRule> lastRules)
Obtains an instance of a ZoneRules.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2018, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.