Releases: Kotlin/kotlinx-datetime
Releases · Kotlin/kotlinx-datetime
v0.6.0-RC.2
v0.6.0-RC
- 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
- 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
- @FenstonSingel made their first contribution in #318
- @igoriakovlev made their first contribution in #315
Full Changelog: v0.4.1...v0.5.0
v0.4.1
- 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
andLocalDate
arithmetic operations (plus
andminus
) takingDateTimeUnit
without a number of units (#247) - Fix adding small
Duration
to largeInstant
on JS and Native (#264)
New Contributors
- @lukellmann made their first contribution in #264
- @NinoDLC made their first contribution in #252
- @MarkCMann made their first contribution in #288
- @joffrey-bion made their first contribution in #292
- @cmota made their first contribution in #278
Full Changelog: v0.4.0...v0.4.1
v0.4.0
- 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 ofLocalTime
(#204). Thank you, @vanniktech! - Provide
LocalDate#toEpochDays
,LocalDate.fromEpochDays
for representing aLocalDate
as a single number (#214). - Rename
Clock.todayAt
toClock.todayIn
for naming consistency (#206). - Update the Kotlin dependency to 1.7.0.
v0.3.3
v0.3.2
v0.3.1
v0.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, andUtcOffset
, which represents just the UTC offset (PR#125).- The
DayBased
andMonthBased
subclasses ofDateTimeUnit.DateBased
are now accessed asDateTimeUnit.DayBased
andDateTimeUnit.MonthBased
as opposed toDateTimeUnit.DateBased.DayBased
andDateTimeUnit.DateBased.MonthBased
respectively (PR#131).