Companion

expect object Companion(source)
actual object Companion(source)

Properties

Link copied to clipboard

An instant value that is far in the future.

Link copied to clipboard
expect val DISTANT_PAST: Instant

An instant value that is far in the past.

actual val DISTANT_PAST: Instant

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
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
Link copied to clipboard
expect fun parse(input: CharSequence, format: DateTimeFormat<DateTimeComponents> = DateTimeComponents.Formats.ISO_DATE_TIME_OFFSET): Instant