interface TimeZoneRules
The set of rules for a particular time zone.
(iosArm64, iosX64, jvm, macosX64)
hasFixedOffset |
Check if the time zone has a fixed offset from UTC. abstract val hasFixedOffset: Boolean |
(iosArm64, iosX64, jvm, macosX64)
daylightSavingsAt |
Get 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 |
(iosArm64, iosX64, jvm, macosX64)
isDaylightSavingsAt |
Check if daylight savings time is in effect at a particular instant. abstract fun isDaylightSavingsAt(instant: Instant): Boolean |
(iosArm64, iosX64, jvm, macosX64)
isValidOffset |
Check if offset is valid at particular date and time. open fun isValidOffset(dateTime: DateTime, offset: UtcOffset): Boolean |
(iosArm64, iosX64, jvm, macosX64)
offsetAt |
Get the offset in effect at a certain number of milliseconds since the Unix epoch. abstract fun offsetAt(millisecondsSinceUnixEpoch: LongMilliseconds): UtcOffset
Get the offset in effect at a certain number of seconds since the Unix epoch. abstract fun offsetAt(secondsSinceUnixEpoch: LongSeconds, nanoOfSeconds: IntNanoseconds): UtcOffset
Get the offset in effect at a particular instant. abstract fun offsetAt(instant: Instant): UtcOffset
Get the offset in effect at a particular date and time. abstract fun offsetAt(dateTime: DateTime): UtcOffset |
(iosArm64, iosX64, jvm, macosX64)
transitionAt |
Get the transition at a particular date and time, if one exists. abstract fun transitionAt(dateTime: DateTime): TimeZoneOffsetTransition? |
(iosArm64, iosX64, jvm, macosX64)
validOffsetsAt |
Get a list of the valid offsets at a particular date and time. abstract fun validOffsetsAt(dateTime: DateTime): List<UtcOffset> |