Releases: sunny-chung/kdatetime-multiplatform
Releases · sunny-chung/kdatetime-multiplatform
1.1.0
1.0.0
New
- Operator function
KZonedDateTime.minus(KZonedDateTime): KDuration
- Operator function
KDuration.minus(KDuration): KDuration
0.6.3
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()
andtoIso8601StringWithMilliseconds()
to classesKInstant
,KZonedInstant
andKZonedDateTime
0.6.2
New
- Ranges support to
KInstant
andKZonedInstant
- Convenient extension functions
Long.milliseconds()
andLong.seconds()
- Convenient functions
toSeconds()
,toMinutes()
,toHours()
,toDays()
andtoWeeks()
of theKDuration
class - Convenient infix function
KInstant.at(KZoneOffset)
- Convenient function
KZonedDateTime.toKInstant()
0.6.1
New
'z'
token inKDateTimeFormat
for formatting UTC/GMT as '+00:00'; for other time zones it behaves the same as'Z'
token
0.6.0
New
- Day of week
- KDateTimeFormat now accepts custom localized names of days of week
KInstant#atLocalZoneOffset
convenience methodKZonedDateTime#format
Changes
- Supported timestamp year range is changed to [1753, 3999]
- Supported datetime (KZonedDateTime) year range is changed to minimum 1753
0.5.0
New
- Date & time validations
Int
toKDuration
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 throwParseDateTimeException
if there is an error. No moreIllegalArgumentException
orNumberFormatException
- updated
toString()
ofKInstant
,KZonedInstant
,KZonedDateTime
andKZoneOffset
not to include class name