core / io.islandtime.darwin

Package io.islandtime.darwin

Various extensions specifically for the Apple platform.

Functions

(iosArm64, iosX64, macosX64)

toIslandDate

fun <ERROR CLASS>.toIslandDate(): Date
(iosArm64, iosX64, macosX64)

toIslandDateTime

fun <ERROR CLASS>.toIslandDateTime(): DateTime
(iosArm64, iosX64, macosX64)

toIslandDateTimeAt

fun <ERROR CLASS>.toIslandDateTimeAt(offset: UtcOffset): DateTime
fun <ERROR CLASS>.toIslandDateTimeAt(nsTimeZone: <ERROR CLASS>): <ERROR CLASS>
(iosArm64, iosX64, macosX64)

toIslandInstant

fun <ERROR CLASS>.toIslandInstant(): Instant
(iosArm64, iosX64, macosX64)

toIslandOffsetDateTime

fun <ERROR CLASS>.toIslandOffsetDateTime(): Nothing
(iosArm64, iosX64, macosX64)

toIslandOffsetDateTimeAt

fun <ERROR CLASS>.toIslandOffsetDateTimeAt(offset: UtcOffset): OffsetDateTime
fun <ERROR CLASS>.toIslandOffsetDateTimeAt(nsTimeZone: <ERROR CLASS>): <ERROR CLASS>
(iosArm64, iosX64, macosX64)

toIslandOffsetDateTimeOrNull

fun <ERROR CLASS>.toIslandOffsetDateTimeOrNull(): OffsetDateTime?
(iosArm64, iosX64, macosX64)

toIslandTime

fun <ERROR CLASS>.toIslandTime(): Time
(iosArm64, iosX64, macosX64)

toIslandTimeZone

Convert an Apple NSTimeZone to an Island Time TimeZone with the same identifier.

fun <ERROR CLASS>.toIslandTimeZone(): TimeZone
(iosArm64, iosX64, macosX64)

toIslandUtcOffset

fun <ERROR CLASS>.toIslandUtcOffset(): UtcOffset
(iosArm64, iosX64, macosX64)

toIslandZonedDateTime

fun <ERROR CLASS>.toIslandZonedDateTime(): Nothing
(iosArm64, iosX64, macosX64)

toIslandZonedDateTimeAt

fun <ERROR CLASS>.toIslandZonedDateTimeAt(zone: TimeZone): ZonedDateTime
fun <ERROR CLASS>.toIslandZonedDateTimeAt(nsTimeZone: <ERROR CLASS>): <ERROR CLASS>
(iosArm64, iosX64, macosX64)

toIslandZonedDateTimeOrNull

fun <ERROR CLASS>.toIslandZonedDateTimeOrNull(): ZonedDateTime?
(iosArm64, iosX64, macosX64)

toNSDate

fun <T> TimePoint<T>.toNSDate(): <ERROR CLASS>
(iosArm64, iosX64, macosX64)

toNSDateComponents

fun Year.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>
fun YearMonth.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>
fun Date.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>
fun Time.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>
fun DateTime.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>
fun OffsetTime.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>
fun OffsetDateTime.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>
fun ZonedDateTime.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>
(iosArm64, iosX64, macosX64)

toNSTimeZone

fun UtcOffset.toNSTimeZone(): <ERROR CLASS>

Convert an Island Time TimeZone to an Apple NSTimeZone.

fun TimeZone.toNSTimeZone(): <ERROR CLASS>
(iosArm64, iosX64, macosX64)

toNSTimeZoneOrNull

Convert an Island Time TimeZone to an Apple NSTimeZone or null if the identifier isn't recognized as valid for an NSTimeZone.

fun TimeZone.toNSTimeZoneOrNull(): <ERROR CLASS>?