Package | Description |
---|---|
java.time |
The main API for dates, times, instants, and durations.
|
java.time.zone |
Support for time-zones and their rules.
|
Modifier and Type | Method and Description |
---|---|
ZoneRules |
ZoneOffset.getRules()
Gets the associated time-zone rules.
|
abstract ZoneRules |
ZoneId.getRules()
Gets the time-zone rules for this ID allowing calculations to be performed.
|
Modifier and Type | Method and Description |
---|---|
static ZoneRules |
ZoneRulesProvider.getRules(java.lang.String zoneId)
Gets the rules for the zone ID.
|
static ZoneRules |
ZoneRules.of(ZoneOffset offset)
Obtains an instance of ZoneRules that has fixed zone rules.
|
static ZoneRules |
ZoneRules.of(ZoneOffset baseStandardOffset,
ZoneOffset baseWallOffset,
java.util.List<ZoneOffsetTransition> standardOffsetTransitionList,
java.util.List<ZoneOffsetTransition> transitionList,
java.util.List<ZoneOffsetTransitionRule> lastRules)
Obtains an instance of a ZoneRules.
|
protected abstract ZoneRules |
ZoneRulesProvider.provideRules(java.lang.String regionId)
SPI method to get the rules for the zone ID.
|
Modifier and Type | Method and Description |
---|---|
static java.util.NavigableMap<java.lang.String,ZoneRules> |
ZoneRulesProvider.getVersions(java.lang.String zoneId)
Gets the history of rules for the zone ID.
|
protected abstract java.util.NavigableMap<java.lang.String,ZoneRules> |
ZoneRulesProvider.provideVersions(java.lang.String zoneId)
SPI method to get the history of rules for the zone ID.
|