Skip to content

Commit 2ddf062

Browse files
committed
clean up
1 parent 34bb00b commit 2ddf062

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ private fun TimestampFormat.asDateTimeFormat() = when (this) {
1919
else -> throw IllegalArgumentException("TimestampFormat $this could not be converted to a DateTimeFormat")
2020
}
2121

22-
private fun KtInstant.truncateToMicros(): KtInstant = KtInstant.fromEpochSeconds(epochSeconds, nanosecondsOfSecond / 1_000 * 1_000)
22+
private fun KtInstant.truncateToMicros(): KtInstant = KtInstant.fromEpochSeconds(epochSeconds, nanosecondsOfSecond / 1000 * 1000)
2323

2424
public actual class Instant(internal val delegate: KtInstant) : Comparable<Instant> {
2525

@@ -87,7 +87,6 @@ public actual class Instant(internal val delegate: KtInstant) : Comparable<Insta
8787
/**
8888
* Parse a string formatted as epoch-seconds into an [Instant]
8989
*/
90-
@OptIn(FormatStringsInDatetimeFormats::class)
9190
public actual fun fromEpochSeconds(ts: String): Instant = fromEpochSeconds(ts.toLong(), 0)
9291

9392
/**

0 commit comments

Comments
 (0)