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

component2

inline operator fun Duration.component2(): Int

Returns the nanosecond offset of this Duration.

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

val (seconds, nanoOffset) = myDuration

See Also

Duration.getNano