jdk8Main.common.LocalTime.jvm.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluid-time-jdk8 Show documentation
Show all versions of fluid-time-jdk8 Show documentation
Multiplatform date & time library
package io.fluidsonic.time
fun LocalTime.toPlatform(): PlatformLocalTime =
PlatformLocalTime.of(hour.toInt(), minute.toInt(), second.toInt(), nanosecond.toInt())
fun PlatformLocalTime.toCommon() =
LocalTime.of(
hour = hour.toLong(),
minute = minute.toLong(),
second = second.toLong(),
nanosecond = nano.toLong()
)