The current jdk has 3 implementations: java.util.Date, java.util.Calendar and java.sql.Date. For years now they are trying to add a fourth more simpler API to the jre api, based on joda-times, an openSource api, that has been used in 20% projects I worked in over the last 5 years (JSR-310). They say that it will be released in milestone 6 of java8 of january 2013.
A very pragmatic and good book about junit testing, Tomek Kaczanowski, Practical Unit Testing with TestNG and Mockito, dedicates an own chapter to the topic of Date-Time stuff.
Date-Time is a can of worms on any platform.
The current jdk has 3 implementations: java.util.Date, java.util.Calendar and java.sql.Date. For years now they are trying to add a fourth more simpler API to the jre api, based on joda-times, an openSource api, that has been used in 20% projects I worked in over the last 5 years (JSR-310). They say that it will be released in milestone 6 of java8 of january 2013.
A very pragmatic and good book about junit testing, Tomek Kaczanowski, Practical Unit Testing with TestNG and Mockito, dedicates an own chapter to the topic of Date-Time stuff.