TimeZone

expect open class TimeZone

A time zone, provides the conversion between Instant and LocalDateTime values using a collection of rules specifying which LocalDateTime value corresponds to each Instant.

actual open class TimeZone
actual open class TimeZone
actual open class TimeZone

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion
actual object Companion

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

Link copied to clipboard
expect val id: String

Returns the identifier string of the time zone.

actual val id: String
actual val id: String
actual open val id: String

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
expect fun TimeZone.offsetAt(instant: Instant): UtcOffset

Finds the offset from UTC this time zone has at the specified instant of physical time.

actual fun TimeZone.offsetAt(instant: Instant): UtcOffset
actual fun TimeZone.offsetAt(instant: Instant): UtcOffset
actual fun TimeZone.offsetAt(instant: Instant): UtcOffset
Link copied to clipboard
fun TimeZone.toJavaZoneId(): ZoneId

Converts this kotlinx.datetime.TimeZone value to a java.time.ZoneId value.

Link copied to clipboard
fun TimeZone.toNSTimeZone(): <Error class: unknown class>

Converts the TimeZone to NSTimeZone.