Skip to content

Kairo Date/Time

kairo-datetime extends kotlinx-datetime and adds some convenient helper functions.

Install kairo-datetime. You don’t need to install Kotlin’s datetime library separately — it’s included by default.

build.gradle.kts
dependencies {
implementation("com.highbeam.kairo:kairo-datetime")
}

This library re-exports kotlinx-datetime types and adds convenience extensions.

A shorthand for the Unix epoch (1970-01-01T00:00:00Z). Useful in tests when you need a stable, deterministic timestamp.

Instant.epoch // 1970-01-01T00:00:00Z