import {SystemDefaultZoneRules} from 'js-joda/src/zone/SystemDefaultZoneRules.js'
SystemDefaultZoneRules
Extends:
Method Summary
Public Methods | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
isValidOffset(dateTime: LocalDateTime, offset: ZoneOffset): boolean |
|
public |
|
|
public |
offsetOfEpochMilli(epochMilli: number): ZoneOffset |
|
public |
offsetOfInstant(instant: Instant): ZoneOffset |
|
public |
offsetOfLocalDateTime(localDateTime: LocalDateTime): ZoneOffset This implementation is NOT returning the best value in a gap or overlap situation as specified at ZoneRules.offsetOfLocalDateTime. |
|
public |
|
|
public |
standardOffset(instant: *): ZoneOffset |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
validOffsets(localDateTime: *): ZoneOffset[] |
Inherited Summary
From class ZoneRules | ||
public static |
of(offset: ZoneOffset): ZoneRules Obtains an instance of ZoneRules that always uses the same offset. |
|
public |
daylightSavings(instant: Instant): Duration Gets the amount of daylight savings in use for the specified instant in this zone. |
|
public |
isDaylightSavings(instant: Instant): boolean Checks if the specified instant is in daylight savings. |
|
public |
Checks of the zone rules are fixed, such that the offset never varies. |
|
public |
isValidOffset(localDateTime: LocalDateTime, offset: ZoneOffset): boolean Checks if the offset date-time is valid for these rules. |
|
public |
nextTransition(instant: Instant): ZoneOffsetTransition Gets the next transition after the specified instant. |
|
public |
offset(instantOrLocalDateTime: *): ZoneOffset |
|
public |
offsetOfEpochMilli(epochMilli: number): ZoneOffset Gets the offset applicable at the specified epochMilli in these rules. |
|
public |
offsetOfInstant(instant: Instant): ZoneOffset Gets the offset applicable at the specified instant in these rules. |
|
public |
offsetOfLocalDateTime(localDateTime: LocalDateTime): ZoneOffset Gets a suitable offset for the specified local date-time in these rules. |
|
public |
previousTransition(instant: Instant): ZoneOffsetTransition Gets the previous transition before the specified instant. |
|
public |
standardOffset(instant: Instant): ZoneOffset Gets the standard offset for the specified instant in this zone. |
|
public |
transition(localDateTime: LocalDateTime): ZoneOffsetTransition Gets the offset transition applicable at the specified local date-time in these rules. |
|
public |
transitionRules(): ZoneOffsetTransitionRule[] Gets the list of transition rules for years beyond those defined in the transition list. |
|
public |
Gets the complete list of fully defined transitions. |
|
public |
validOffsets(localDateTime: LocalDateTime): ZoneOffset[] Gets the offset applicable at the specified local date-time in these rules. |
Public Methods
public daylightSavings() source
Override:
ZoneRules#daylightSavingsThrow:
* |
DateTimeException not supported |
public isDaylightSavings() source
Override:
ZoneRules#isDaylightSavingsThrow:
* |
DateTimeException not supported |
public isValidOffset(dateTime: LocalDateTime, offset: ZoneOffset): boolean source
Override:
ZoneRules#isValidOffsetParams:
Name | Type | Attribute | Description |
dateTime | LocalDateTime | ||
offset | ZoneOffset |
public nextTransition() source
Override:
ZoneRules#nextTransitionThrow:
* |
DateTimeException not supported |
public offsetOfEpochMilli(epochMilli: number): ZoneOffset source
Override:
ZoneRules#offsetOfEpochMilliParams:
Name | Type | Attribute | Description |
epochMilli | number |
public offsetOfInstant(instant: Instant): ZoneOffset source
Override:
ZoneRules#offsetOfInstantParams:
Name | Type | Attribute | Description |
instant | Instant |
public offsetOfLocalDateTime(localDateTime: LocalDateTime): ZoneOffset source
This implementation is NOT returning the best value in a gap or overlap situation as specified at ZoneRules.offsetOfLocalDateTime.
The calculated offset depends Date.prototype.getTimezoneOffset and its not specified at the ECMA-262 specification how to handle daylight savings gaps/ overlaps.
The Chrome Browser version 49 is returning the next transition offset in a gap/overlap situation, other browsers/ engines might do it in the same way.
Override:
ZoneRules#offsetOfLocalDateTimeParams:
Name | Type | Attribute | Description |
localDateTime | LocalDateTime |
public previousTransition() source
Override:
ZoneRules#previousTransitionThrow:
* |
DateTimeException not supported |
public standardOffset(instant: *): ZoneOffset source
Override:
ZoneRules#standardOffsetParams:
Name | Type | Attribute | Description |
instant | * |
public transition(): undefined source
Override:
ZoneRules#transitionThrow:
* |
DateTimeException not supported |
public transitionRules() source
Override:
ZoneRules#transitionRulesThrow:
* |
DateTimeException not supported |
public validOffsets(localDateTime: *): ZoneOffset[] source
Override:
ZoneRules#validOffsetsParams:
Name | Type | Attribute | Description |
localDateTime | * |