We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b92d4a2 commit 86c1d96Copy full SHA for 86c1d96
runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/time/InstantNative.kt
@@ -18,7 +18,7 @@ private fun TimestampFormat.asDateTimeFormat() = when (this) {
18
else -> throw IllegalArgumentException("TimestampFormat $this could not be converted to a DateTimeFormat")
19
}
20
21
-private fun KtInstant.truncateToMicros(): KtInstant = KtInstant.fromEpochSeconds(epochSeconds, nanosecondsOfSecond / 1000 * 1000)
+private fun KtInstant.truncateToMicros(): KtInstant = KtInstant.fromEpochSeconds(epochSeconds, nanosecondsOfSecond / 1_000 * 1_000)
22
23
public actual class Instant(internal val delegate: KtInstant) : Comparable<Instant> {
24
0 commit comments