Date4j is a new Java library for dates and times. Its available at www.date4j.net.
It was built out of frustration with both the JDK classes, and dissatisfaction with the JodaTime library. Date4j is open source, with a BSD license.
Important aspects of date4j :
- a single public, immutable class called DateTime handles parsing, formatting, and date-time calculations
- compatible with the date-time model used by most databases - a simplified 'proleptic' Gregorian calendar
- nanosecond precision
- no explicit time zones are used
Many will be surprised at the lack of explicit time zone. For more information as to why this design was intentionally chosen, please see www.date4j.net.
- John O'Hanley