File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/time Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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
2424public 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 /* *
You can’t perform that action at this time.
0 commit comments