# Kotlin/kotlinx-datetime

KotlinX multiplatform date/time library

Repository: https://github.com/Kotlin/kotlinx-datetime
Canonical: https://ross.abutalabs.com/products/kotlinx-datetime
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: kotlin, date, datetime, timezone
Last push: 2026-08-26T10:01:09+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 59, longevity 100
- inputs: {"age_days": 2512, "days_push": 7, "days_rel": 118, "gap_med": 133, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2825, forks 130 (observed 2026-08-28T04:07:24.142789+00:00)

## What it is
A Kotlin multiplatform library for working with dates, times, and time zones based on the ISO 8601 standard. It provides a minimal, pragmatic API that clearly separates physical instants from time-zone-dependent civil time.

## Use cases
- work with dates and times in Kotlin multiplatform code
- handle time zones and timezone conversions in Kotlin
- represent local dates and date-time components
- add calendar-based durations like months to an instant
- replace java.time in shared Kotlin code
- parse and format ISO 8601 dates

## When to choose
- you need date/time handling shared across JVM, native, and JS Kotlin targets
- you want a minimal, safe API that prevents mixing instants with local time
- you need timezone-aware calendar arithmetic

## When to avoid
- you need locale-specific formatting or internationalized month/day names
- you need domain-specific calendar utilities beyond common date/time operations
- you only target the JVM, where java.time is available

## Facets
- artifact type: library
- maturity: active
- function: date-time
- domain: cross-platform, developer-tools
- platform: jvm, windows, wasm
- tags: kotlin-multiplatform, iso-8601, timezone, jetbrains, android, ios, macos, linux

## Member repositories
- Kotlin/kotlinx-datetime (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:24.142789+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:48:42.374010+00:00, confidence not recorded.
  - readme: https://github.com/Kotlin/kotlinx-datetime (fetched 2026-08-28T04:07:24.142789+00:00, sha bc5d15952e7a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
