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

component2

inline operator fun Instant.component2(): Int
Deprecated: These extensions are for java.* APIs and not android.* APIs and thus are out of scope for this project. Star https://youtrack.jetbrains.com/issue/KT-21585 for future support of extensions like these. These extensions will be removed before core-ktx 1.0!

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