//core/io.islandtime.darwin/toNSTimeZone
toNSTimeZone¶
darwin
fun UtcOffset.toNSTimeZone(): <Error class: unknown class>
Converts this offset into an equivalent NSTimeZone
with a fixed UTC offset.
Note that NSTimeZone
will round the totalSeconds
value to the nearest minute.
darwin
fun TimeZone.toNSTimeZone(): <Error class: unknown class>
Converts this time zone to an NSTimeZone
.
Throws¶
TimeZoneRulesException | if the identifier isn't recognized as valid for an NSTimeZone |