Ola Gawell
08/28/2019, 12:47 PMgildor
08/28/2019, 12:59 PMOla Gawell
08/28/2019, 1:08 PMPatrick Jackson
08/28/2019, 1:25 PMserebit
08/28/2019, 1:46 PMMarc Knaup
08/28/2019, 3:22 PMjava.time
.Ola Gawell
08/28/2019, 3:48 PMPatrick Jackson
08/28/2019, 3:52 PMexpect object TimeUtil {
fun systemTimeMs(): Long
}
iOS:
actual object TimeUtil {
actual fun systemTimeMs(): Long = NSDate().timeIntervalSince1970.toLong() * 1000
}
JVM:
actual object TimeUtil {
actual fun systemTimeMs(): Long = System.currentTimeMillis()
}
Marc Knaup
08/28/2019, 5:08 PM(NSDate().timeIntervalSince1970 * 1000).toLong()
otherwise you lose the milliseconds