@@ -22,20 +22,20 @@ import kotlin.time.Duration
22
22
import kotlin.time.TimeSource
23
23
24
24
/* *
25
- * Creates a [kotlinx .time.Instant] (the standard library version of `Instant`) identical to `this`.
25
+ * Creates a [kotlin .time.Instant] (the standard library version of `Instant`) identical to `this`.
26
26
*/
27
- public fun Instant.toStdlibInstant (): kotlinx .time.Instant =
28
- kotlinx .time.Instant .fromEpochSeconds(epochSeconds, nanosecondsOfSecond)
27
+ public fun Instant.toStdlibInstant (): kotlin .time.Instant =
28
+ kotlin .time.Instant .fromEpochSeconds(epochSeconds, nanosecondsOfSecond)
29
29
30
30
/* *
31
31
* Creates a [kotlinx.datetime.Instant] identical to the version of `Instant` from the standard library.
32
32
*/
33
- public fun kotlinx .time.Instant.toDeprecatedInstant (): Instant =
33
+ public fun kotlin .time.Instant.toDeprecatedInstant (): Instant =
34
34
Instant .fromEpochSeconds(epochSeconds, nanosecondsOfSecond)
35
35
36
36
@Deprecated(
37
37
" Use kotlin.time.Instant instead" ,
38
- ReplaceWith (" kotlinx .time.Instant" , " kotlinx .time.Instant" ),
38
+ ReplaceWith (" kotlin .time.Instant" , " kotlin .time.Instant" ),
39
39
level = DeprecationLevel .WARNING
40
40
)
41
41
@Serializable(with = InstantIso8601Serializer ::class )
@@ -191,7 +191,7 @@ public expect class Instant : Comparable<Instant> {
191
191
192
192
193
193
public companion object {
194
- @Deprecated(" Use Clock.System.now() instead" , ReplaceWith (" Clock.System.now()" , " kotlinx .time.Clock" ), level = DeprecationLevel .ERROR )
194
+ @Deprecated(" Use Clock.System.now() instead" , ReplaceWith (" Clock.System.now()" , " kotlin .time.Clock" ), level = DeprecationLevel .ERROR )
195
195
public fun now (): Instant
196
196
197
197
/* *
@@ -294,7 +294,7 @@ public expect class Instant : Comparable<Instant> {
294
294
*/
295
295
@Deprecated(" kotlinx.datetime.Instant is superseded by kotlin.time.Instant" ,
296
296
level = DeprecationLevel .WARNING ,
297
- replaceWith = ReplaceWith (" this.toStdlibInstant().isDistantPast" , " kotlinx .time.isDistantPast" )
297
+ replaceWith = ReplaceWith (" this.toStdlibInstant().isDistantPast" , " kotlin .time.isDistantPast" )
298
298
)
299
299
public val Instant .isDistantPast: Boolean
300
300
get() = this <= Instant .DISTANT_PAST
@@ -306,7 +306,7 @@ public val Instant.isDistantPast: Boolean
306
306
*/
307
307
@Deprecated(" kotlinx.datetime.Instant is superseded by kotlin.time.Instant" ,
308
308
level = DeprecationLevel .WARNING ,
309
- replaceWith = ReplaceWith (" this.toStdlibInstant().isDistantPast" , " kotlinx .time.isDistantFuture" )
309
+ replaceWith = ReplaceWith (" this.toStdlibInstant().isDistantPast" , " kotlin .time.isDistantFuture" )
310
310
)
311
311
public val Instant .isDistantFuture: Boolean
312
312
get() = this >= Instant .DISTANT_FUTURE
0 commit comments