core-ktx / androidx.time / java.time.LocalTime / component4

component4

inline operator fun LocalTime.component4(): Int

Return the nanosecond offset of this LocalTime.

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

val (hour, minute, second, nanoOffset) = myLocalTime

See Also

LocalTime.getNano