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

component2

inline operator fun OffsetDateTime.component2(): ZoneOffset

Return the ZoneOffset of this OffsetDateTime.

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

val (dateTime, offset) = myOffsetTime

See Also

OffsetDateTime.getOffset