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

component2

inline operator fun OffsetTime.component2(): ZoneOffset

Return the ZoneOffset of this OffsetTime.

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

val (time, offset) = myOffsetTime

See Also

OffsetTime.getOffset