Instant

actual class Instant

Android implementation using java.util.Date

expect class Instant

Custom Instant implementation to replace kotlinx-datetime.Instant

actual class Instant

iOS implementation using Foundation classes

Constructors

Link copied to clipboard
constructor(date: Date)
constructor(date: NSDate)

Types

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

Properties

Link copied to clipboard
actual val epochSeconds: Long
expect val epochSeconds: Long
actual val epochSeconds: Long
Link copied to clipboard

Functions

Link copied to clipboard
fun Instant.toIsoString(timeZone: TimeZone? = null, forceNumberOffset: Boolean = true): String

Extension function to convert Instant to ISO string format

Link copied to clipboard
actual open override fun toString(): String
expect open override fun toString(): String
actual open override fun toString(): String