Releases: sebj/time
Releases · sebj/time
0.4.0
Updated to Kotlin 1.7.0
All Changes:
- Bump org.jetbrains.kotlinx.kover from 0.5.0 to 0.5.1 by @dependabot in #8
- Bump actions/cache from 3.0.2 to 3.0.3 by @dependabot in #9
- Bump actions/cache from 3.0.3 to 3.0.4 by @dependabot in #10
- Bump multiplatform from 1.6.21 to 1.7.0 by @dependabot in #11
- Bump org.jetbrains.dokka from 1.6.21 to 1.7.0 by @dependabot in #13
- Bump versioning-plugin from 1.6.21 to 1.7.0 by @dependabot in #12
- Bump JamesIves/github-pages-deploy-action from 4.3.3 to 4.3.4 by @dependabot in #15
- Bump kotlinx-datetime from 0.3.3 to 0.4.0 by @dependabot in #14
Full Changelog: 0.3.2...0.4.0
0.3.2
TimePeriod.relation
is now publicly accessible, instead of being internal
Full Changelog: 0.3.1...0.3.2
0.3.1
First public release on Maven Central
Full Changelog: 0.3.0...0.3.1
0.3.0
Changed:
- Unit objects (
Nanosecond
,Second
,Minute
,Hour
,Day
,Month
andYear
) are now grouped under theTimeUnit
sealed class
Full Changelog: 0.2.0...0.3.0
0.2.0
Added:
- Larger time periods can now be derived from a
TimePeriod
(minute containing a second, day containing second/minute/hour etc.) - Adjustments can now be made at nanosecond precision
- A
TimePeriod
can be increased or decreased by its smallest unit usingoffset
- A
Clock
can be offset or scaled (sped up or slowed down) with new extensions - Documentation has been added for much of the library
dayOfWeek
anddayOfYear
properties can now be accessed for periods ofDay
or finer precision
Changed:
- Many functions are now properties:
- Sequences (
seconds
,minutes
, etc) first...
andlast...
next...
andprevious...
range
- Sequences (
- The components of a
TimePeriod
are no longer publicly accessible - When adding or subtracting from a
TimePeriod
, the parameter label is alwayscount
TimeZone
is now stored as part of aTimePeriod
, andTimePeriod
s can be converted betweenTimeZone
s as a result- Some functions and properties can now throw
MissingDateTimeComponentsException
,DateTimeComponentOutOfBoundsException
orIllegalTimeUnitException
Fixed:
- Precision was lost when creating a
second
,minute
orhour
TimePeriod
from individual components - Precision was lost when creating
TimePeriod<Second>
orTimePeriod<Minute>
from aLocalDateTime
Removed:
- Support for JS targets
Full Changelog: 0.1.0...0.2.0