Skip to content

Releases: sunny-chung/kdatetime-multiplatform

1.1.0

07 Dec 02:31
Compare
Choose a tag to compare

Changes since v1.0.0

Added

  • Formatting and parsing localized AM/PM
  • Formatting and parsing month names

Removed

  • JS legacy compiler support is dropped, as required by Kotlin 1.9

1.0.0

20 Mar 13:30
Compare
Choose a tag to compare

New

  • Operator function KZonedDateTime.minus(KZonedDateTime): KDuration
  • Operator function KDuration.minus(KDuration): KDuration

0.6.3

12 Mar 09:55
Compare
Choose a tag to compare

Fix

  • Missing JS IR compilation artifact causing projects which only use JS IR compiler (the default in Kotlin 1.9) would fail to fetch and resolve this library. This issue applies to v0.6.0 ~ v0.6.2.

New

  • Convenient functions toIso8601String() and toIso8601StringWithMilliseconds() to classes KInstant, KZonedInstant and KZonedDateTime

0.6.2

09 Mar 12:02
Compare
Choose a tag to compare

New

  • Ranges support to KInstant and KZonedInstant
  • Convenient extension functions Long.milliseconds() and Long.seconds()
  • Convenient functions toSeconds(), toMinutes(), toHours(), toDays() and toWeeks() of the KDuration class
  • Convenient infix function KInstant.at(KZoneOffset)
  • Convenient function KZonedDateTime.toKInstant()

0.6.1

22 Feb 13:57
Compare
Choose a tag to compare

New

  • 'z' token in KDateTimeFormat for formatting UTC/GMT as '+00:00'; for other time zones it behaves the same as 'Z' token

0.6.0

20 Jan 06:08
Compare
Choose a tag to compare

New

Changes

  • Supported timestamp year range is changed to [1753, 3999]
  • Supported datetime (KZonedDateTime) year range is changed to minimum 1753

0.5.0

05 Nov 04:59
Compare
Choose a tag to compare

New

  • Date & time validations
  • Int to KDuration conversion extensions (e.g. 3.seconds())
  • KDuration#toString() implementation

Changes

  • increased the supported year range of timestamps to be [0, 2999]
  • updated behaviour of KDateTimeFormat#parseToKZonedDateTime to always throw ParseDateTimeException if there is an error. No more IllegalArgumentException or NumberFormatException
  • updated toString() of KInstant, KZonedInstant, KZonedDateTime and KZoneOffset not to include class name