core / io.islandtime / UtcOffset / toComponents

toComponents

(iosArm64, iosX64, jvm, macosX64) inline fun <T> toComponents(action: (sign: Int, hours: IntHours, minutes: IntMinutes, seconds: IntSeconds) -> T): T

Break a UTC offset down into components. The sign will indicate whether the offset is positive or negative while each component will be positive.

(iosArm64, iosX64, jvm, macosX64) inline fun <T> toComponents(action: (hours: IntHours, minutes: IntMinutes, seconds: IntSeconds) -> T): T

Break a UTC offset down into components. If the offset is negative, each component will be negative.