Multiplatform date and time library for Kotlin, providing types like Instant and LocalDateTime.
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-datetime-jvm</artifactId>
<version>0.7.1</version>
</dependency>No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Get the current instant
Use TimeZone.of("America/New_York") instead of TimeZone.ID.No dependency data recorded yet.