Skip to content

Commit 7a65531

Browse files
committed
chore: update time links in whatsnew2120.md
1 parent aaee3c0 commit 7a65531

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/topics/whatsnew/whatsnew2120.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,9 @@ Starting with Kotlin 2.1.20, the standard library provides the ability to repres
467467
was previously only available in [`kotlinx-datetime`](https://kotlinlang.org/api/kotlinx-datetime/), an official Kotlin
468468
library.
469469

470-
The [`kotlinx.datetime.Clock`](https://kotlinlang.org/api/kotlinx-datetime/kotlinx-datetime/kotlinx.datetime/-clock/) interface
471-
is introduced to the standard library as `kotlin.time.Clock` and the [`kotlinx.datetime.Instant`](https://kotlinlang.org/api/kotlinx-datetime/kotlinx-datetime/kotlinx.datetime/-instant/)
472-
class as `kotlin.time.Instant`. These concepts naturally align with the `time` package in the standard library because
470+
The `kotlinx.datetime.Clock` interface
471+
is introduced to the standard library as [`kotlin.time.Clock`](https://kotlinlang.org/api/core/2.1/kotlin-stdlib/kotlin.time/-clock/) and the `kotlinx.datetime.Instant`
472+
class as [`kotlin.time.Instant`](https://kotlinlang.org/api/core/2.1/kotlin-stdlib/kotlin.time/-instant/). These concepts naturally align with the `time` package in the standard library because
473473
they're only concerned with moments in time compared to a more complex calendar and timezone functionality that remains
474474
in `kotlinx-datetime`.
475475

@@ -479,9 +479,9 @@ moment for system processes.
479479

480480
To provide interoperability with other languages, additional converter functions are available:
481481

482-
* `.toKotlinInstant()` converts a time value to a `kotlin.time.Instant` instance.
483-
* `.toJavaInstant()` converts the `kotlin.time.Instant` value to a `java.time.Instant` value.
484-
* `Instant.toJSDate()` converts the `kotlin.time.Instant` value to an instance of the JS `Date` class. This conversion
482+
* [`.toKotlinInstant()`](https://kotlinlang.org/api/core/2.1/kotlin-stdlib/kotlin.time/to-kotlin-instant.html) converts a time value to a `kotlin.time.Instant` instance.
483+
* [`.toJavaInstant()`](https://kotlinlang.org/api/core/2.1/kotlin-stdlib/kotlin.time/to-java-instant.html) converts the `kotlin.time.Instant` value to a `java.time.Instant` value.
484+
* [`Instant.toJSDate()`](https://kotlinlang.org/api/core/2.1/kotlin-stdlib/kotlin.time/to-j-s-date.html) converts the `kotlin.time.Instant` value to an instance of the JS `Date` class. This conversion
485485
is not precise; JS uses millisecond precision to represent dates, while Kotlin allows for nanosecond resolution.
486486

487487
The new time features of the standard library are still [Experimental](components-stability.md#stability-levels-explained).

0 commit comments

Comments
 (0)