Skip to content

Commit 7f2330f

Browse files
committed
Replace all usages of kotlinx.datetime.{Clock, Instant} with kotlin.time.{Clock, Instant}
1 parent 6ca2837 commit 7f2330f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/time/InstantJVM.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import kotlin.time.Duration
2525
import kotlin.time.toKotlinDuration
2626
import java.time.Duration as jtDuration
2727
import java.time.Instant as jtInstant
28-
import kotlinx.datetime.Instant as KtInstant
28+
import kotlin.time.Instant as KtInstant
2929

3030
// FIXME Consider making this multiplatform (`common`) using kotlinx.datetime
3131
public actual class Instant(internal val value: jtInstant) : Comparable<Instant> {

runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/time/DateTimeFormats.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import kotlinx.datetime.format.char
1717
import kotlinx.datetime.format.optional
1818

1919
/**
20-
* [DateTimeFormat<DateTimeComponents>] for use with [kotlinx.datetime.Instant]
20+
* [DateTimeFormat<DateTimeComponents>] for use with [kotlin.time.Instant]
2121
*/
2222
internal object DateTimeFormats {
2323

runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/time/InstantNative.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
package aws.smithy.kotlin.runtime.time
77

8-
import kotlinx.datetime.Clock
8+
import kotlin.time.Clock
99
import kotlinx.datetime.LocalDate
1010
import kotlinx.datetime.TimeZone
1111
import kotlinx.datetime.atStartOfDayIn
1212
import kotlinx.datetime.format
1313
import kotlin.time.Duration
14-
import kotlinx.datetime.Instant as KtInstant
14+
import kotlin.time.Instant as KtInstant
1515

1616
private fun TimestampFormat.asDateTimeFormat() = when (this) {
1717
TimestampFormat.RFC_5322 -> DateTimeFormats.RFC_5322

0 commit comments

Comments
 (0)