The equivallent of `System.currentTimeMillis()` in...
# kotlinx-datetime
c
The equivallent of
System.currentTimeMillis()
in kotlinx.datetime would be
Clock.now().toEpochMilliseconds
?
👌 3
c
Clock.System.now().toEpochMilliseconds, but yes Same as in the other thread though: it's better to accept a Clock as a constructor parameter than using Clock.System directly, otherwise it's hard to test
👍 2