darwinMain.io.islandtime.internal.PlatformImpl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-metadata Show documentation
Show all versions of core-metadata Show documentation
A multiplatform library for working with dates and times
The newest version!
package io.islandtime.internal
import io.islandtime.Instant
import io.islandtime.PlatformInstant
import io.islandtime.TimeZone
import io.islandtime.darwin.toIslandInstant
import io.islandtime.darwin.toIslandTimeZone
import io.islandtime.darwin.toNSDate
import platform.Foundation.NSTimeZone
import platform.Foundation.localTimeZone
internal actual fun systemDefaultTimeZone(): TimeZone = NSTimeZone.localTimeZone.toIslandTimeZone()
internal actual fun PlatformInstant.toIslandInstant(): Instant = toIslandInstant()
internal actual fun Instant.toPlatformInstant(): PlatformInstant = toNSDate()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy