Skip to content

Latest commit

 

History

History
59 lines (33 loc) · 2.76 KB

CHANGELOG.md

File metadata and controls

59 lines (33 loc) · 2.76 KB

CHANGELOG

0.3.1

Fixes

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

0.3.0

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).

0.2.1

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.

0.2.0

Fixes

  • Fixed 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)

0.1.1

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)

0.1.0

Initial implementation

A minimal, but still valuable multiplatform implementation of date and time types.