Companion

expect object Companion
actual object Companion
actual object Companion
actual object Companion

Functions

Link copied to clipboard
expect fun fromEpochMilliseconds(epochMilliseconds: Long): Instant

Returns an Instant that is epochMilliseconds number of milliseconds from the epoch instant 1970-01-01T00:00:00Z.

actual fun fromEpochMilliseconds(epochMilliseconds: Long): Instant
actual fun fromEpochMilliseconds(epochMilliseconds: Long): Instant
actual fun fromEpochMilliseconds(epochMilliseconds: Long): Instant
Link copied to clipboard
expect fun fromEpochSeconds(epochSeconds: Long, nanosecondAdjustment: Int): Instant
expect fun fromEpochSeconds(epochSeconds: Long, nanosecondAdjustment: Long = 0): Instant

Returns an Instant that is the epochSeconds number of seconds from the epoch instant 1970-01-01T00:00:00Z and the nanosecondAdjustment number of nanoseconds from the whole second.

actual fun fromEpochSeconds(epochSeconds: Long, nanosecondAdjustment: Int): Instant
actual fun fromEpochSeconds(epochSeconds: Long, nanosecondAdjustment: Long): Instant
actual fun fromEpochSeconds(epochSeconds: Long, nanosecondAdjustment: Int): Instant
actual fun fromEpochSeconds(epochSeconds: Long, nanosecondAdjustment: Long): Instant
actual fun fromEpochSeconds(epochSeconds: Long, nanosecondAdjustment: Int): Instant
actual fun fromEpochSeconds(epochSeconds: Long, nanosecondAdjustment: Long): Instant
Link copied to clipboard
expect fun parse(isoString: String): Instant

Parses a string that represents an instant in ISO-8601 format including date and time components and the mandatory time zone offset and returns the parsed Instant value.

actual fun parse(isoString: String): Instant
actual fun parse(isoString: String): Instant
actual fun parse(isoString: String): Instant

Properties

Link copied to clipboard
expect val DISTANT_FUTURE: Instant

An instant value that is far in the future.

actual val DISTANT_FUTURE: Instant
actual val DISTANT_FUTURE: Instant
actual val DISTANT_FUTURE: Instant
Link copied to clipboard
expect val DISTANT_PAST: Instant

An instant value that is far in the past.

actual val DISTANT_PAST: Instant
actual val DISTANT_PAST: Instant
actual val DISTANT_PAST: Instant