A Kotlin Multiplatform library for working with dates and times
A Kotlin Multiplatform library for working with dates and times, heavily inspired by the java.time library.
Features:
Date
, Time
, DateTime
, Instant
, and ZonedDateTime
date.next(MONDAY)
, dateTime.startOfWeek
, or date.week(WeekSettings.systemDefault())
Notable Limitations:
Island Time is still early in development and “moving fast” so to speak. The API is likely to experience changes between minor version increments.
See the project website for more information along with the API reference docs.
The goal of this project is not just to port the java.time library over to Kotlin Multiplatform, but to take full advantage of Kotlin language features to create a date-time DSL that feels natural to users of the language and encourages best practices where possible. To that end, any and all feedback would be much appreciated in helping to iron out the API.
If you’re interested in contributing or have ideas on areas that can be improved (there are definitely many right now), please feel free to initiate a dialog by opening design-related issues or submitting pull requests.