grahamborland
02/06/2023, 10:30 AMjava.time.Clock
to a kotlinx.datetime.Clock
? I was looking for an extension/helper function but couldn’t see one. It’s a trivial wrapper, but maybe it exists somewhere already?
val ktClock = object : kotlinx.datetime.Clock {
override fun now() = javaClock.instant().toKotlinInstant()
}
hfhbd
02/06/2023, 12:03 PMgrahamborland
02/07/2023, 12:58 PM