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

component3

inline operator fun LocalTime.component3(): Int

Return the second of this LocalTime.

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

val (hour, minute, second) = myLocalTime

See Also

LocalTime.getSecond