data: add TimeBridge helpers for epoch-millis ↔ kotlin.time.Instant
This commit is contained in:
1 parent
a826e82bdc
commit
1b456d2133
4 files changed
+33
No files matched your search
@@ -0,0 +1,7 @@
|
||||
package de.jeanlucmakiola.calendula.data.calendar
|
||||
|
||||
import kotlin.time.Instant
|
||||
|
||||
fun Long.toKotlinInstantFromEpochMillis(): Instant = Instant.fromEpochMilliseconds(this)
|
||||
|
||||
fun Instant.toEpochMillis(): Long = toEpochMilliseconds()
|
||||
Reference in new issue
Block a user