core / io.islandtime.darwin / toNSTimeZone

toNSTimeZone

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun UtcOffset.toNSTimeZone(): <ERROR CLASS>

Convert an Island Time UtcOffset into an equivalent NSTimeZone with a fixed UTC offset.

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

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun TimeZone.toNSTimeZone(): <ERROR CLASS>

Convert an Island Time TimeZone to an NSTimeZone.

Exceptions

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