Repository navigation
Releases: ItemConsulting/lib-xp-time
Release list
v2.0.0
Major Changes
- f0f359c: Support Enonic XP 8, and drop support for XP 7.
Minor Changes
-
53e1fed: Add
ChronoUnit, the units of time fromNANOStoMILLENNIA.The date-time classes get the methods that take a unit:
plus()andminus()with an amount and a unit,until()to count the whole units to another date or time, andtruncatedTo(). -
53e1fed: Add
Duration, an exact amount of time in hours, minutes and seconds.It can be added to and subtracted from
Instant,LocalTime,LocalDateTime,OffsetTime,OffsetDateTimeandZonedDateTimewithplus()andminus(). -
53e1fed: Add
Period, an amount of years, months and days that follows the calendar.It can be added to and subtracted from
LocalDate,LocalDateTime,OffsetDateTimeandZonedDateTimewithplus()andminus(), andLocalDate.until()gives thePeriodbetween two dates.
Patch Changes
1.2.1
What's Changed
- Add support for java.util.Locale.LanguageRange by @tajakobsen in #11
Full Changelog: 1.1.0...1.2.1
1.1.0
Add missing isAfter and isBefore methods
Full Changelog: 1.0.3...1.0.4
Support Node 18 env in package.json
Full Changelog: 1.0.2...1.0.3
Fix published types in npm
Changed path of generated types so that npm will work correctly.
v1.0.1
General release
Fix TypeScript type npm package
What's Changed
- Fix path in prepublishOnly where type declarations are by @tajakobsen in #7
Full Changelog: 0.1.1...0.1.2