Companion

expect object Companion
actual object Companion

Properties

Link copied to clipboard
expect val MAX_VALUE: Instant

Create an Instant with the maximum possible value

actual val MAX_VALUE: Instant

Create an Instant with the maximum possible value

Link copied to clipboard
expect val MIN_VALUE: Instant

Create an Instant with the minimum possible value

actual val MIN_VALUE: Instant

Create an Instant with the minimum possible value

Functions

Link copied to clipboard

Parse a string formatted as epoch-seconds into an Instant

expect fun fromEpochSeconds(seconds: Long, ns: Int = 0): Instant

Create an Instant from its parts

Parse a string formatted as epoch-seconds into an Instant

actual fun fromEpochSeconds(seconds: Long, ns: Int): Instant

Create an Instant from it's parts

Link copied to clipboard
expect fun fromIso8601(ts: String): Instant

Parse an ISO-8601 formatted string into an Instant

actual fun fromIso8601(ts: String): Instant

Parse an ISO-8601 formatted string into an Instant

Link copied to clipboard
expect fun fromRfc5322(ts: String): Instant

Parse an RFC5322/RFC-822 formatted string into an Instant

actual fun fromRfc5322(ts: String): Instant

Parse an RFC5322/RFC-822 formatted string into an Instant

Link copied to clipboard
expect fun now(): Instant

Create an Instant from the current system time

actual fun now(): Instant

Create an Instant from the current system time

Inherited functions

Link copied to clipboard

Create an Instant from epoch millisecond timestamp