core-ktx / androidx.time / java.time.Instant

Extensions for java.time.Instant

component1

operator fun Instant.component1(): Long

Return the seconds of this Instant.

component2

operator fun Instant.component2(): Int

Return the nanosecond offset of this Instant.