Skip to content

Releases: sebj/time

0.4.0

08 Jul 09:59

Choose a tag to compare

Updated to Kotlin 1.7.0

All Changes:

Full Changelog: 0.3.2...0.4.0

0.3.2

04 May 18:04

Choose a tag to compare

TimePeriod.relation is now publicly accessible, instead of being internal

Full Changelog: 0.3.1...0.3.2

0.3.1

01 May 19:14

Choose a tag to compare

First public release on Maven Central

Full Changelog: 0.3.0...0.3.1

0.3.0

01 May 17:38

Choose a tag to compare

Changed:

  • Unit objects (Nanosecond, Second, Minute, Hour, Day, Month and Year) are now grouped under the TimeUnit sealed class

Full Changelog: 0.2.0...0.3.0

0.2.0

29 Apr 11:49

Choose a tag to compare

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 using offset
  • 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 and dayOfYear properties can now be accessed for periods of Day or finer precision

Changed:

  • Many functions are now properties:
    • Sequences (seconds, minutes, etc)
    • first... and last...
    • next... and previous...
    • range
  • The components of a TimePeriod are no longer publicly accessible
  • When adding or subtracting from a TimePeriod, the parameter label is always count
  • TimeZone is now stored as part of a TimePeriod, and TimePeriods can be converted between TimeZones as a result
  • Some functions and properties can now throw MissingDateTimeComponentsException, DateTimeComponentOutOfBoundsException or IllegalTimeUnitException

Fixed:

  • Precision was lost when creating a second, minute or hour TimePeriod from individual components
  • Precision was lost when creating TimePeriod<Second> or TimePeriod<Minute> from a LocalDateTime

Removed:

  • Support for JS targets

Full Changelog: 0.1.0...0.2.0

0.1.0

19 Apr 17:41

Choose a tag to compare

First public release