core / io.islandtime / asUtcOffset

asUtcOffset

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun IntHours.asUtcOffset(): UtcOffset

Converts a duration of hours into a UTC time offset of the same length.

Exceptions

ArithmeticException - if overflow occurs

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun IntMinutes.asUtcOffset(): UtcOffset

Converts a duration of minutes into a UTC time offset of the same length.

Exceptions

ArithmeticException - if overflow occurs

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun IntSeconds.asUtcOffset(): UtcOffset

Converts a duration of seconds into a UTC time offset of the same length.