FixedOffsetTimeZone

expect class FixedOffsetTimeZone : TimeZone

A time zone that is known to always have the same offset from UTC.

actual class FixedOffsetTimeZone : TimeZone
actual class FixedOffsetTimeZone : TimeZone
actual class FixedOffsetTimeZone : TimeZone

Constructors

Link copied to clipboard
expect fun FixedOffsetTimeZone(offset: UtcOffset)
actual fun FixedOffsetTimeZone(offset: UtcOffset)
actual fun FixedOffsetTimeZone(offset: UtcOffset)
actual fun FixedOffsetTimeZone(offset: UtcOffset)

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
open override fun hashCode(): Int
Link copied to clipboard
expect fun LocalDateTime.toInstant(): Instant

Returns an instant that corresponds to this civil date/time value in the time zone provided as an implicit receiver.

actual fun LocalDateTime.toInstant(): Instant
actual fun LocalDateTime.toInstant(): Instant
actual fun LocalDateTime.toInstant(): Instant
Link copied to clipboard
expect fun Instant.toLocalDateTime(): LocalDateTime

Return the civil date/time value that this instant has in the time zone provided as an implicit receiver.

actual fun Instant.toLocalDateTime(): LocalDateTime
actual fun Instant.toLocalDateTime(): LocalDateTime
actual fun Instant.toLocalDateTime(): LocalDateTime
toString
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String

Properties

id
Link copied to clipboard
expect val id: String

Returns the identifier string of the time zone.

actual val id: String
actual val id: String
open override val id: String
Link copied to clipboard
expect val offset: UtcOffset

The constant offset from UTC that this time zone has.

actual val offset: UtcOffset
actual val offset: UtcOffset
actual val offset: UtcOffset

Extensions

Link copied to clipboard
fun FixedOffsetTimeZone.toJavaZoneOffset(): ZoneOffset