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

commonMain.krono.LocalDate.kt Maven / Gradle / Ivy

@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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy