Skip to content

Releases: Kotlin/kotlinx-datetime

v0.6.0-RC.2

01 Mar 15:08
Compare
Choose a tag to compare
v0.6.0-RC.2 Pre-release
Pre-release
  • Support Android NDK targets (#344)
  • Ensure ABI compatibility with v0.5.0 (#357)

v0.6.0-RC

29 Feb 12:45
Compare
Choose a tag to compare
v0.6.0-RC Pre-release
Pre-release
  • Introduce the widely requested API for locale-invariant parsing and formatting (#343)
  • Breaking change: use the fully qualified name of classes in the JSON serializers (#308)
  • Fix Proguard emitting warning about missing kotlinx-serialization classes when serialization is not used (#336)
  • Reimplement the timezone database handling for Native targets from scratch (#286, #327)

v0.5.0

01 Dec 16:59
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release
  • Update Kotlin dependency to 1.9.21, kotlinx.serialization to 1.6.2
  • Add support of Wasm-Js target through Js interop with the same js-joda library as in Js (#315)
  • Prevent secondary outputs of Java 9 compilation getting packed into jar (#305)

New Contributors

Full Changelog: v0.4.1...v0.5.0

v0.4.1

01 Sep 04:07
Compare
Choose a tag to compare
v0.4.1 Pre-release
Pre-release
  • Update Kotlin dependency to 1.8.21, kotlinx.serialization to 1.5.1
  • Support more Kotlin/Native targets: linuxArm64, linuxArm32Hfp, watchosDeviceArm64
  • Implement comparable time marks in a time source returned by Clock.asTimeSource() (#271)
  • Deprecate Instant and LocalDate arithmetic operations (plus and minus) taking DateTimeUnit without a number of units (#247)
  • Fix adding small Duration to large Instant on JS and Native (#264)

New Contributors

Full Changelog: v0.4.0...v0.4.1

v0.4.0

25 Jun 15:42
8b5a5ca
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release
  • Add the LocalTime class for representing time-of-day (#57). Thank you, @bishiboosh!
  • Provide LocalTime#toSecondOfDay, LocalTime.fromSecondOfDay, and various other functions for compact representation of LocalTime (#204). Thank you, @vanniktech!
  • Provide LocalDate#toEpochDays, LocalDate.fromEpochDays for representing a LocalDate as a single number (#214).
  • Rename Clock.todayAt to Clock.todayIn for naming consistency (#206).
  • Update the Kotlin dependency to 1.7.0.

v0.3.3

04 May 21:44
Compare
Choose a tag to compare
v0.3.3 Pre-release
Pre-release

Changes

  • Just updated Kotlin dependency to 1.7.0-Beta and kotlinx.serialization to 1.3.2

v0.3.2

11 Jan 20:58
Compare
Choose a tag to compare
v0.3.2 Pre-release
Pre-release

Features

  • Update Kotlin dependency to 1.6.0 and remove ExperimentalTime from API involving Duration which became stable (#156)
  • Add an explicit module-info descriptor to JVM variant of the library (#135)
  • kotlinx.datetime.Instant conversions to and from JS Date (#170).

v0.3.1

27 Oct 10:06
Compare
Choose a tag to compare
v0.3.1 Pre-release
Pre-release

Fixes

  • Fixed a crash in desugared code on Android when trying to construct time zones with some specific identifiers (149)

v0.3.0

27 Sep 16:19
21da24e
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

Features

  • Added iosSimulatorArm64, watchosSimulatorArm64, tvosSimulatorArm64, macosArm64 target support (141, 144).

Changes

  • ZoneOffset was replaced by two other classes: FixedOffsetTimeZone, which represents a time zone with a fixed offset, and UtcOffset, which represents just the UTC offset (PR#125).
  • The DayBased and MonthBased subclasses of DateTimeUnit.DateBased are now accessed as DateTimeUnit.DayBased and DateTimeUnit.MonthBased as opposed to DateTimeUnit.DateBased.DayBased and DateTimeUnit.DateBased.MonthBased respectively (PR#131).

v0.2.1

26 May 11:40
Compare
Choose a tag to compare
v0.2.1 Pre-release
Pre-release

Fixes

  • Fixed the library being incompatible with kotlinx.serialization 1.2.0 and above (#118).

Features

  • watchosX64 target support. In practice, this means the ability to run projects that depend on this library in the iOS Simulator for Apple Watch.