Skip to contents

Gets the UTC offset string from a numeric UTC offset hours value

Arguments

utcOffset

A UTC offset in hours

Value

An ISO8601 UTC offset string in +/-HH:MM format

Examples

if (FALSE) {
getUtcOffsetText(-8) # "-08:00"
getUtcOffsetText(2.5) # "+02:30"
}