TimeZoneRules

The set of rules for a particular time zone.

interface TimeZoneRules

Functions

daylightSavingsAt
Link copied to clipboard
common

Gets the amount of daylight savings time in effect at a particular instant. This is the amount of time added to the standard offset.

abstract fun daylightSavingsAt(instant: Instant): IntSeconds
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
isDaylightSavingsAt
Link copied to clipboard
common

Checks if daylight savings time is in effect at a particular instant.

abstract fun isDaylightSavingsAt(instant: Instant): Boolean
isValidOffset
Link copied to clipboard
common

Checks if offset is valid at particular date and time.

open fun isValidOffset(dateTime: DateTime, offset: UtcOffset): Boolean
offsetAt
Link copied to clipboard
common

Gets the offset in effect at a certain number of milliseconds since the Unix epoch.

abstract fun offsetAt(millisecondsSinceUnixEpoch: LongMilliseconds): UtcOffset

Gets the offset in effect at a certain number of seconds since the Unix epoch.

abstract fun offsetAt(secondsSinceUnixEpoch: LongSeconds, nanoOfSeconds: IntNanoseconds): UtcOffset

Gets the offset in effect at a particular instant.

abstract fun offsetAt(instant: Instant): UtcOffset
abstract fun offsetAt(instant: PlatformInstant): UtcOffset

Gets the offset in effect at a particular date and time.

abstract fun offsetAt(dateTime: DateTime): UtcOffset
toString
Link copied to clipboard
common
open override fun toString(): String
transitionAt
Link copied to clipboard
common

Gets the transition at a particular date and time, if one exists.

abstract fun transitionAt(dateTime: DateTime): TimeZoneOffsetTransition?
validOffsetsAt
Link copied to clipboard
common

Gets a list of the valid offsets at a particular date and time.

abstract fun validOffsetsAt(dateTime: DateTime): List<UtcOffset>

Properties

hasFixedOffset
Link copied to clipboard
common

Checks if the time zone has a fixed offset from UTC.

abstract val hasFixedOffset: Boolean