Registry / utility / kotlinx-datetime

kotlinx-datetime

JSON →
library0.7.1javamavenunverified

Multiplatform date and time library for Kotlin providing types like Instant, LocalDate, and DateTimePeriod.

<dependency> <groupId>org.jetbrains.kotlinx</groupId> <artifactId>kotlinx-datetime</artifactId> <version>0.7.1</version> </dependency>
INSTALL
IMPORT
SIG · KOTLINX-DATETIME
K
kotlinx-datetime
utilityjavav0.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Instant
kotlinx.datetime.Instant

Gets the current instant using the system clock and prints it.

import kotlinx.datetime.Instant import kotlinx.datetime.Clock fun main() { val now: Instant = Clock.System.now() println("Current instant: $now") }
Debug
Known issues
gotchaTime zone support requires additional dependency: kotlinx-datetime-zoneinfo.
fix
Add kotlinx-datetime-zoneinfo to your dependencies for time zone operations.
affects: >=0.4.0
Upgrade
Version history
0.7.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
kotlinx-datetime — mvn dependency:get kotlinx-datetime · libregistry