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

component2

inline operator fun Instant.component2(): Int

Return the nanosecond offset of this Instant.

This method allows to use destructuring declarations when working with instants, for example:

val (seconds, nanoOffset) = myInstant

See Also

Instant.getNano