Skip to content
Discussion options

You must be logged in to vote

As of Kotlin 2.2 you can add a kotlin.time.Clock constructor parameter with a default value of Clock.System. If you are on an older version of Kotlin the kotlinx.datetime library can provide the same API.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mikaelstaldal
Comment options

@JakeWharton
Comment options

Answer selected by mikaelstaldal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants