commonMain.krono.LocalDate.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of krono-api-jvm Show documentation
Show all versions of krono-api-jvm Show documentation
An multiplatform interoperable datetime library
@file:JsExport
@file:Suppress("NON_EXPORTABLE_TYPE")
package krono
import kotlinx.serialization.Serializable
import krono.serializers.LocalDateIsoSerializer
import kotlinx.JsExport
import kotlinx.JsExportIgnore
import kotlin.js.JsName
@Serializable(with = LocalDateIsoSerializer::class)
interface LocalDate : DateLike, Dateable, TemporalComparable {
@JsExportIgnore
companion object
fun toEpochMillisAsLong(): Long
fun toEpochMillisAsDouble(): Double
fun toEpochMillisAsInt(): Int
@JsName("minusDate")
operator fun minus(other: LocalDate): Duration
@JsName("minusDuration")
operator fun minus(duration: Duration): LocalDate
operator fun plus(duration: Duration) : LocalDate
}