JDK 8 includes JSR-310, a new date and time library. But what about functionality that didn't make it into the JDK?
However, as part of that process, certain pieces of functionality were rejected and/or excluded from the JDK. This was sometimes due to scope management and sometimes due to whether something was appropriate for the JDK.
The TheeTen-Extra project provides a home for that functionality.
The following functionality is currently provided:
DayOfMonthtemporal value type
DayOfYeartemporal value type
YearQuartertemporal value type
Yearsamount value types
- Next/previous day adjusters that skip the weekend (Saturday/Sunday)
- Coptic calendar system
- Support for the TAI and UTC time-scales
The project has spare space to add more functionality, so long as it is generally applicable. For example, additional calendar systems would be a good fit. Feel free to raise a pull request with your ideas.
The ThreeTen-Extra project is now available, providing an additional jar file of date/time code that builds on
java.time (JSR-310) in JDK 8.