@@ -21,15 +21,15 @@ import kotlin.jvm.JvmName
21
21
import kotlin.time.Duration
22
22
import kotlin.time.TimeSource
23
23
24
- public fun Instant.toStdlibInstant (): kotlinx .time.Instant =
25
- kotlinx .time.Instant .fromEpochSeconds(epochSeconds, nanosecondsOfSecond)
24
+ public fun Instant.toStdlibInstant (): kotlin .time.Instant =
25
+ kotlin .time.Instant .fromEpochSeconds(epochSeconds, nanosecondsOfSecond)
26
26
27
- public fun kotlinx .time.Instant.toDeprecatedInstant (): Instant =
27
+ public fun kotlin .time.Instant.toDeprecatedInstant (): Instant =
28
28
Instant .fromEpochSeconds(epochSeconds, nanosecondsOfSecond)
29
29
30
30
@Deprecated(
31
31
" Use kotlin.time.Instant instead" ,
32
- ReplaceWith (" kotlinx .time.Instant" , " kotlinx .time.Instant" ),
32
+ ReplaceWith (" kotlin .time.Instant" , " kotlin .time.Instant" ),
33
33
level = DeprecationLevel .WARNING
34
34
)
35
35
@Serializable(with = InstantIso8601Serializer ::class )
@@ -185,7 +185,7 @@ public expect class Instant : Comparable<Instant> {
185
185
186
186
187
187
public companion object {
188
- @Deprecated(" Use Clock.System.now() instead" , ReplaceWith (" Clock.System.now()" , " kotlinx .time.Clock" ), level = DeprecationLevel .ERROR )
188
+ @Deprecated(" Use Clock.System.now() instead" , ReplaceWith (" Clock.System.now()" , " kotlin .time.Clock" ), level = DeprecationLevel .ERROR )
189
189
public fun now (): Instant
190
190
191
191
/* *
@@ -288,7 +288,7 @@ public expect class Instant : Comparable<Instant> {
288
288
*/
289
289
@Deprecated(" kotlinx.datetime.Instant is superseded by kotlin.time.Instant" ,
290
290
level = DeprecationLevel .WARNING ,
291
- replaceWith = ReplaceWith (" this.toStdlibInstant().isDistantPast" , " kotlinx .time.isDistantPast" )
291
+ replaceWith = ReplaceWith (" this.toStdlibInstant().isDistantPast" , " kotlin .time.isDistantPast" )
292
292
)
293
293
public val Instant .isDistantPast: Boolean
294
294
get() = this <= Instant .DISTANT_PAST
@@ -300,7 +300,7 @@ public val Instant.isDistantPast: Boolean
300
300
*/
301
301
@Deprecated(" kotlinx.datetime.Instant is superseded by kotlin.time.Instant" ,
302
302
level = DeprecationLevel .WARNING ,
303
- replaceWith = ReplaceWith (" this.toStdlibInstant().isDistantPast" , " kotlinx .time.isDistantFuture" )
303
+ replaceWith = ReplaceWith (" this.toStdlibInstant().isDistantPast" , " kotlin .time.isDistantFuture" )
304
304
)
305
305
public val Instant .isDistantFuture: Boolean
306
306
get() = this >= Instant .DISTANT_FUTURE
0 commit comments