This week's giveaway is in the Cloud/Virtualization forum. We're giving away four copies of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP and have Lucian Maly on-line! See this thread for details.
The Joda-Time project provides a quality replacement for the Java date and time classes. The design allows for multiple calendar systems, while still providing simple API. The 'default' calendar is the ISO8601 standard which is used by XML and suitable for most business uses. The Gregorian, Julian, Buddhist and Coptic systems are also included, and we welcome further additions.
The main API includes - DateTime - a full date and time - DateMidnight - date with time fixed at midnight - YearMonthDay - a date without time zone - TimeOfDay - a time without time zone - Duration - length of time in milliseconds - Period - length of time in fields (eg. 6 months and 2 days) - Interval - an interval between two datetimes Supporting classes include time zone, duration, format and parsing.
The decision to create a cleanroom date implementation to replace Java's is based on the flaws in the JDK code. Date should have been immutable, like String, instead it is mutable and has many deprecated methods. Calendar makes accessing 'normal' dates difficult, due to the lack of simple methods. It also has some strange performance characteristics as it recalculates fields at unexpected moments.
This release is heavily tested, so why not give it a try! Its a whole lot better than the JDK classes ;-)