Package | Description |
---|---|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
javax.time.calendar.zone |
Provides classes to implement time-zones and their rules.
|
Modifier and Type | Method and Description |
---|---|
ZoneRules |
ZonedDateTime.getApplicableRules()
Calculates the zone rules applicable for this date-time.
|
abstract ZoneRules |
TimeZone.getRules()
Gets the time-zone rules allowing calculations to be performed.
|
abstract ZoneRules |
TimeZone.getRulesValidFor(OffsetDateTime dateTime)
Gets the time-zone rules allowing calculations to be performed, ensuring that
the date-time and offset specified is valid for the returned rules.
|
Modifier and Type | Method and Description |
---|---|
protected abstract OffsetDateTime |
ZoneResolver.handleGap(TimeZone zone,
ZoneRules rules,
ZoneOffsetTransition gapInfo,
LocalDateTime newDateTime,
OffsetDateTime oldDateTime)
Defines the strategy for selecting an offset to use for a local date-time
when the local date-time is in a local time-line gap.
|
protected abstract OffsetDateTime |
ZoneResolver.handleOverlap(TimeZone zone,
ZoneRules rules,
ZoneOffsetTransition overlapInfo,
LocalDateTime newDateTime,
OffsetDateTime oldDateTime)
Defines the strategy for selecting an offset to use for a local date-time
when the local date-time is in a local time-line overlap.
|
Modifier and Type | Method and Description |
---|---|
ZoneRules |
ZoneRulesGroup.getRules(String regionID,
String versionID)
Gets the rules for the specified region#version ID combination.
|
ZoneRules |
ZoneRulesGroup.getRulesValidFor(String regionID,
String versionID,
OffsetDateTime dateTime)
Gets the rules for the specified region and version ensuring that the rules
are valid for the date-time.
|
ZoneRules |
ZoneRulesVersion.getZoneRules(String regionID)
Gets the zone rules for the specified region ID.
|
static ZoneRules |
ZoneRules.ofFixed(ZoneOffset offset)
Obtains a rules instance for a specific offset.
|
ZoneRules |
ZoneRulesBuilder.toRules(String id)
Completes the build converting the builder to a set of time-zone rules.
|
Modifier and Type | Method and Description |
---|---|
SortedMap<String,ZoneRules> |
TZDBZoneRulesCompiler.compile()
Compile the rules file.
|
Copyright © 2014. All rights reserved.