Kotlin/kotlinx-datetime

KotlinX multiplatform date/time library

Owned by JetBrains

View on GitHub ↗Jump to charts ↓Open shareable report →

Kotlin/kotlinx-datetime has 2.5k+ stars and 100+ forks on GitHub, is written in Kotlin, and was last pushed on Oct 9, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 8 minutes ago
Type:Library / SDKCategory(s):Core & Utility LibrariesLanguages & Runtimes
Added to GitGenius on October 12th, 2026
Created on October 17th, 2019
Open Issues & Pull Requests: 37 (+0)
GitHub issues: Enabled
Number of forks: 136
Total Stargazers: 2,824 (+0)
Total Subscribers: 61 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 11.3 hours
Mean response time: 49.5 days
90th percentile: 102.3 days
Tracked items: 130

How this project is maintained

Work labelled "timezone" is answered fastest, typically in about 11 hours, while "bug" waits about 3 days. Three people close 87% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 14
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 921 days
Stale 30+ days: 14
Stale 90+ days: 12

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • breaking change (18)
  • formatters (13)
  • bug (11)
  • timezone (11)
  • waiting for clarification (8)
  • cookbook (3)
  • enhancement (3)
  • documentation (2)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

kotlinx-datetime is a multiplatform Kotlin library for working with date and time.

The library addresses the common need to handle dates and times correctly across different platforms while maintaining a clear separation between physical time (instants) and civil time (human-readable components like year, month, and day). It solves this by providing distinct types for different temporal concepts: LocalDateTime for date and time components without timezone information, LocalDate for dates only, LocalTime for times only, and Instant paired with TimeZone for timezone-aware conversions. The design explicitly requires timezone information as a parameter when performing calendar-based operations on instants, preventing the kind of timezone-related bugs that arise from mixing physical and civil time concepts.

The library is built on the ISO 8601 standard and intentionally keeps its scope narrow, focusing on the most common developer needs rather than attempting to be all-encompassing. It provides no locale-specific utilities like translated month names, and it does not support non-ISO calendar systems. This pragmatic approach results in a minimal API surface. The type system includes LocalDateTime, LocalDate, YearMonth, LocalTime, TimeZone, FixedOffsetTimeZone, DateTimePeriod, DatePeriod, DateTimeUnit, UtcOffset, and LocalDateTimeOffsetInfo, giving developers the tools needed for typical date and time operations without unnecessary complexity.

Developers should choose this library if they need reliable date and time handling in Kotlin multiplatform projects and want a straightforward API that avoids the pitfalls of mixing instant and civil time concepts. It suits projects that work with ISO 8601 dates and times and do not require specialized calendar systems or internationalization features. The library's explicit timezone handling makes it particularly valuable for applications where timezone correctness is important.

The project maintains active development with regular commits addressing bug fixes and feature enhancements. Pull requests receive timely review and feedback from maintainers. The codebase shows consistent attention to test coverage and documentation updates alongside code changes.