All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jdk8Main.common.LocalTime.jvm.kt Maven / Gradle / Ivy

There is a newer version: 0.9.20
Show newest version
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()
	)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy