core / io.islandtime / UtcOffset

UtcOffset

(iosArm64, iosX64, jvm, macosX64) fun UtcOffset(hours: IntHours, minutes: IntMinutes = 0.minutes, seconds: IntSeconds = 0.seconds): UtcOffset

Create a UTC offset of hours, minutes, and seconds. Each component must be within its valid range and without any mixed positive and negative values.

Parameters

hours - hours to offset by, within +/-18

minutes - minutes to offset by, within +/-59

seconds - seconds to offset by, within +/-59

Exceptions

DateTimeException - if any of the individual components is outside the valid range

Return
a UtcOffset