Skip to content

Releases: Kotlin/kotlinx-datetime

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.

v0.2

27 Apr 19:59
Compare
Choose a tag to compare
v0.2 Pre-release
Pre-release

Fixes

  • Fix TimeZone.currentSystemDefault() crashing on Darwin if the resulting time zone is not listed among TimeZone.knownTimeZoneIdentifiers (#94)

Features

  • kotlinx-serialization support (#37)
  • Normalization of DateTimePeriod components, meaning that periods that are semantically equivalent are considered equal (#81)
  • Instant can now be parsed from an ISO-8601 string with an offset other than Z (#56)

v0.1.1

25 Nov 18:26
Compare
Choose a tag to compare
v0.1.1 Pre-release
Pre-release

Fixes

  • Fix a crash when getting the current time on iOS 9 (#52)
  • Wrong answers in some cases when adding date-based units to instants on Darwin and Windows (#51)

Features

  • Zone-agnostic time-based arithmetic on Instants, e.g. Instant.plus(value, DateTimeUnit.TimeBased)
  • Add Instant.fromEpochSeconds(epochSeconds: Long, nanosecondAdjustment: Int) construction function
  • Introduce minus operations complementary to existing plus arithmetic operations (#42)

v0.1

13 Aug 14:40
Compare
Choose a tag to compare
v0.1 Pre-release
Pre-release

The initial release, contains the basic types and operations to work with dates and times.