From 9983822da7f2a25d7f95ceecd7d7790dafe9abc2 Mon Sep 17 00:00:00 2001 From: Erik Christensen Date: Sun, 16 Aug 2020 13:29:08 -0400 Subject: [PATCH] Fix visibility of nowImpl() --- .../kotlin/io/islandtime/clock/internal/NowImpl.kt | 12 ++++++------ .../kotlin/io/islandtime/clock/internal/NowImpl.kt | 12 ++++++------ .../kotlin/io/islandtime/clock/internal/NowImpl.kt | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/core/src/commonMain/kotlin/io/islandtime/clock/internal/NowImpl.kt b/core/src/commonMain/kotlin/io/islandtime/clock/internal/NowImpl.kt index 43a3d6d35..c74a134ba 100644 --- a/core/src/commonMain/kotlin/io/islandtime/clock/internal/NowImpl.kt +++ b/core/src/commonMain/kotlin/io/islandtime/clock/internal/NowImpl.kt @@ -3,9 +3,9 @@ package io.islandtime.clock.internal import io.islandtime.* import io.islandtime.clock.Clock -expect fun Date.Companion.nowImpl(clock: Clock): Date -expect fun DateTime.Companion.nowImpl(clock: Clock): DateTime -expect fun OffsetDateTime.Companion.nowImpl(clock: Clock): OffsetDateTime -expect fun ZonedDateTime.Companion.nowImpl(clock: Clock): ZonedDateTime -expect fun Time.Companion.nowImpl(clock: Clock): Time -expect fun OffsetTime.Companion.nowImpl(clock: Clock): OffsetTime +internal expect fun Date.Companion.nowImpl(clock: Clock): Date +internal expect fun DateTime.Companion.nowImpl(clock: Clock): DateTime +internal expect fun OffsetDateTime.Companion.nowImpl(clock: Clock): OffsetDateTime +internal expect fun ZonedDateTime.Companion.nowImpl(clock: Clock): ZonedDateTime +internal expect fun Time.Companion.nowImpl(clock: Clock): Time +internal expect fun OffsetTime.Companion.nowImpl(clock: Clock): OffsetTime diff --git a/core/src/darwinMain/kotlin/io/islandtime/clock/internal/NowImpl.kt b/core/src/darwinMain/kotlin/io/islandtime/clock/internal/NowImpl.kt index ff1ea8a96..6332a0603 100644 --- a/core/src/darwinMain/kotlin/io/islandtime/clock/internal/NowImpl.kt +++ b/core/src/darwinMain/kotlin/io/islandtime/clock/internal/NowImpl.kt @@ -4,27 +4,27 @@ import io.islandtime.* import io.islandtime.clock.Clock import io.islandtime.internal.* -actual fun Date.Companion.nowImpl(clock: Clock): Date { +internal actual fun Date.Companion.nowImpl(clock: Clock): Date { return with(clock) { readInstant().toDateAt(zone) } } -actual fun DateTime.Companion.nowImpl(clock: Clock): DateTime { +internal actual fun DateTime.Companion.nowImpl(clock: Clock): DateTime { return with(clock) { readInstant().toDateTimeAt(zone) } } -actual fun OffsetDateTime.Companion.nowImpl(clock: Clock): OffsetDateTime { +internal actual fun OffsetDateTime.Companion.nowImpl(clock: Clock): OffsetDateTime { return with(clock) { readInstant().toOffsetDateTimeAt(zone) } } -actual fun ZonedDateTime.Companion.nowImpl(clock: Clock): ZonedDateTime { +internal actual fun ZonedDateTime.Companion.nowImpl(clock: Clock): ZonedDateTime { return with(clock) { readInstant() at zone } } -actual fun Time.Companion.nowImpl(clock: Clock): Time { +internal actual fun Time.Companion.nowImpl(clock: Clock): Time { return with(clock) { readInstant().toTimeAt(zone) } } -actual fun OffsetTime.Companion.nowImpl(clock: Clock): OffsetTime { +internal actual fun OffsetTime.Companion.nowImpl(clock: Clock): OffsetTime { return with(clock) { readInstant().toOffsetTimeAt(zone) } } diff --git a/core/src/jvmMain/kotlin/io/islandtime/clock/internal/NowImpl.kt b/core/src/jvmMain/kotlin/io/islandtime/clock/internal/NowImpl.kt index 3399ff108..e1bf80007 100644 --- a/core/src/jvmMain/kotlin/io/islandtime/clock/internal/NowImpl.kt +++ b/core/src/jvmMain/kotlin/io/islandtime/clock/internal/NowImpl.kt @@ -3,26 +3,26 @@ package io.islandtime.clock.internal import io.islandtime.* import io.islandtime.clock.Clock -actual fun Date.Companion.nowImpl(clock: Clock): Date { +internal actual fun Date.Companion.nowImpl(clock: Clock): Date { return with(clock) { readPlatformInstant().toDateAt(zone) } } -actual fun DateTime.Companion.nowImpl(clock: Clock): DateTime { +internal actual fun DateTime.Companion.nowImpl(clock: Clock): DateTime { return with(clock) { readPlatformInstant().toDateTimeAt(zone) } } -actual fun OffsetDateTime.Companion.nowImpl(clock: Clock): OffsetDateTime { +internal actual fun OffsetDateTime.Companion.nowImpl(clock: Clock): OffsetDateTime { return with(clock) { readPlatformInstant().toOffsetDateTimeAt(zone) } } -actual fun ZonedDateTime.Companion.nowImpl(clock: Clock): ZonedDateTime { +internal actual fun ZonedDateTime.Companion.nowImpl(clock: Clock): ZonedDateTime { return with(clock) { readPlatformInstant().toZonedDateTimeAt(zone) } } -actual fun Time.Companion.nowImpl(clock: Clock): Time { +internal actual fun Time.Companion.nowImpl(clock: Clock): Time { return with(clock) { readPlatformInstant().toTimeAt(zone) } } -actual fun OffsetTime.Companion.nowImpl(clock: Clock): OffsetTime { +internal actual fun OffsetTime.Companion.nowImpl(clock: Clock): OffsetTime { return with(clock) { readPlatformInstant().toOffsetTimeAt(zone) } }