java.time.zone
6 classes of the module java.base.
Load them with:
using {
"java.time.zone"
}
ZoneOffsetTransition ZoneOffsetTransitionRule ZoneOffsetTransitionRuleTimeDefinition ZoneRules ZoneRulesException ZoneRulesProvider
ZoneOffsetTransition#
class final · extends Object · java.time.zone.ZoneOffsetTransition
Implements: Comparable, Serializable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
compareTo | compareTo(otherTransition) | int compareTo(ZoneOffsetTransition otherTransition) |
getDateTimeAfter | getDateTimeAfter() | LocalDateTime getDateTimeAfter() |
getDateTimeBefore | getDateTimeBefore() | LocalDateTime getDateTimeBefore() |
getDuration | getDuration() | Duration getDuration() |
getInstant | getInstant() | Instant getInstant() |
getOffsetAfter | getOffsetAfter() | ZoneOffset getOffsetAfter() |
getOffsetBefore | getOffsetBefore() | ZoneOffset getOffsetBefore() |
isGap | isGap() | boolean isGap() |
isOverlap | isOverlap() | boolean isOverlap() |
isValidOffset | isValidOffset(offset) | boolean isValidOffset(ZoneOffset offset) |
of | of(transition,offsetBefore,offsetAfter) | static ZoneOffsetTransition of(LocalDateTime transition, ZoneOffset offsetBefore, ZoneOffset offsetAfter) |
toEpochSecond | toEpochSecond() | long toEpochSecond() |
The methods and fields of Object are inherited.
ZoneOffsetTransitionRule#
class final · extends Object · java.time.zone.ZoneOffsetTransitionRule
Implements: Serializable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
createTransition | createTransition(year) | ZoneOffsetTransition createTransition(int year) |
getDayOfMonthIndicator | getDayOfMonthIndicator() | int getDayOfMonthIndicator() |
getDayOfWeek | getDayOfWeek() | DayOfWeek getDayOfWeek() |
getLocalTime | getLocalTime() | LocalTime getLocalTime() |
getMonth | getMonth() | Month getMonth() |
getOffsetAfter | getOffsetAfter() | ZoneOffset getOffsetAfter() |
getOffsetBefore | getOffsetBefore() | ZoneOffset getOffsetBefore() |
getStandardOffset | getStandardOffset() | ZoneOffset getStandardOffset() |
getTimeDefinition | getTimeDefinition() | TimeDefinition getTimeDefinition() |
isMidnightEndOfDay | isMidnightEndOfDay() | boolean isMidnightEndOfDay() |
of | of(month,dayOfMonthIndicator,dayOfWeek,time,timeEndOfDay,timeDefinition,standardOffset,offsetBefore,offsetAfter) | static ZoneOffsetTransitionRule of(Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, TimeDefinition timeDefinition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter) |
The methods and fields of Object are inherited.
ZoneOffsetTransitionRuleTimeDefinition#
enum · extends Enum · java.time.zone.ZoneOffsetTransitionRule$TimeDefinition
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
UTC | TimeDefinition | constant · static | o.UTC |
WALL | TimeDefinition | constant · static | o.WALL |
STANDARD | TimeDefinition | constant · static | o.STANDARD |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
createDateTime | createDateTime(dateTime,standardOffset,wallOffset) | LocalDateTime createDateTime(LocalDateTime dateTime, ZoneOffset standardOffset, ZoneOffset wallOffset) |
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static TimeDefinition valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static TimeDefinition[] values() |
The methods and fields of Enum are inherited.
ZoneRules#
class final · extends Object · java.time.zone.ZoneRules
Implements: Serializable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getDaylightSavings | getDaylightSavings(instant) | Duration getDaylightSavings(Instant instant) |
getOffset | getOffset(localDateTime) | ZoneOffset getOffset(LocalDateTime localDateTime)ZoneOffset getOffset(Instant instant) |
getStandardOffset | getStandardOffset(instant) | ZoneOffset getStandardOffset(Instant instant) |
getTransition | getTransition(localDateTime) | ZoneOffsetTransition getTransition(LocalDateTime localDateTime) |
getTransitionRules | getTransitionRules() | List getTransitionRules() |
getTransitions | getTransitions() | List getTransitions() |
getValidOffsets | getValidOffsets(localDateTime) | List getValidOffsets(LocalDateTime localDateTime) |
isDaylightSavings | isDaylightSavings(instant) | boolean isDaylightSavings(Instant instant) |
isFixedOffset | isFixedOffset() | boolean isFixedOffset() |
isValidOffset | isValidOffset(localDateTime,offset) | boolean isValidOffset(LocalDateTime localDateTime, ZoneOffset offset) |
nextTransition | nextTransition(instant) | ZoneOffsetTransition nextTransition(Instant instant) |
of | of(offset)of([baseStandardOffset,baseWallOffset,standardOffsetTransitionList,transitionList,lastRules])of([ :baseStandardOffset = v, :baseWallOffset = v, :standardOffsetTransitionList = v, :transitionList = v, :lastRules = v ]) | static ZoneRules of(ZoneOffset offset)static ZoneRules of(ZoneOffset baseStandardOffset, ZoneOffset baseWallOffset, List standardOffsetTransitionList, List transitionList, List lastRules) |
previousTransition | previousTransition(instant) | ZoneOffsetTransition previousTransition(Instant instant) |
The methods and fields of Object are inherited.
ZoneRulesException#
class · extends DateTimeException · java.time.zone.ZoneRulesException
Constructors
new ZoneRulesException(String message) |
new ZoneRulesException(String message, Throwable cause) |
Ring: new ZoneRulesException(args) uses the constructor with the fewest parameters (at least one); new ZoneRulesException makes the object with the constructor without parameters; the others: (new ZoneRulesException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of DateTimeException are inherited.
ZoneRulesProvider#
abstract · extends Object · java.time.zone.ZoneRulesProvider
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAvailableZoneIds | getAvailableZoneIds() | static Set getAvailableZoneIds() |
getRules | getRules(zoneId,forCaching) | static ZoneRules getRules(String zoneId, boolean forCaching) |
getVersions | getVersions(zoneId) | static NavigableMap getVersions(String zoneId) |
refresh | refresh() | static boolean refresh() |
registerProvider | registerProvider(provider) | static void registerProvider(ZoneRulesProvider provider) |
The methods and fields of Object are inherited.