Releases: Kotlin/kotlinx-datetime
Releases · Kotlin/kotlinx-datetime
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).
v0.2.1
v0.2
Fixes
- Fix
TimeZone.currentSystemDefault()
crashing on Darwin if the resulting time zone is not listed amongTimeZone.knownTimeZoneIdentifiers
(#94)
Features
v0.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 existingplus
arithmetic operations (#42)