how to get the current unixtime in standard librar...
# stdlib
d
how to get the current unixtime in standard library?
a
System.currentTimeMillis()
d
@asad.awadia I cannot find that function. Do I need to import some particular library?
I found
Clock.System.now().epochSeconds
by importing
Copy code
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.1.0")
a
google
d
what do you mean?
l
@asad.awadia Daniele was implying in the common stdlib. @Daniele B You can make a StackOverflow question and answer it yourself to have it on Google next time someone wonders.
@louiscad done:
l
Great, upvoted.
👍 1