Instant

expect class Instant

This represents a timestamp, though we use the name 'instant' in the runtime because that's what the JVM libraries use, and 'Timestamp' means something else on that platform.

actual class Instant
actual typealias Instant = java.time.Instant
actual class Instant

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
expect fun getEpochSecond(): Long

Returns the number of seconds since the UNIX epoch (1970-01-01T00:00:00Z) if this value is positive, or until the UNIX epoch if this value is negative.

actual fun getEpochSecond(): Long
actual fun getEpochSecond(): Long
Link copied to clipboard
expect fun getNano(): Int

Returns a value in the range [0..1,000,000,000) indicating the fraction of a second that is added to getEpochSecond.

actual fun getNano(): Int
actual fun getNano(): Int
hashCode
Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int