UtcOffset

fun UtcOffset(hours: Hours, minutes: Minutes = 0.minutes, seconds: Seconds = 0.seconds): UtcOffset

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

Return

a UtcOffset

Parameters

hours

hours to offset by, within +/-18

minutes

minutes to offset by, within +/-59

seconds

seconds to offset by, within +/-59

Throws

if the offset or any of its components are invalid