toNSTimeZone

fun UtcOffset.toNSTimeZone(): <ERROR CLASS>

Converts this offset into an equivalent NSTimeZone with a fixed UTC offset.

Note that NSTimeZonewill round the totalSeconds value to the nearest minute.

fun TimeZone.toNSTimeZone(): <ERROR CLASS>

Converts this time zone to an NSTimeZone.

Throws

io.islandtime.zone.TimeZoneRulesException

if the identifier isn't recognized as valid for an NSTimeZone