Skip to content

//core/io.islandtime/UtcOffset/toComponents

toComponents

common

inline fun <T> toComponents(action: (sign: Int, hours: Hours, minutes: Minutes, seconds: Seconds) -> T): T

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

common

inline fun <T> toComponents(action: (hours: Hours, minutes: Minutes, seconds: Seconds) -> T): T

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