Archive for November, 2010

I’ve been a fan of JodaTime since I first used it a year ago. Finally a replacement to Java’s internal date and time api, a replacement that makes it really easy to work with dates, times and intervals in Java code.

One of the hidden features in the API which I only recently found is the ability to use a fixed time stamp for all DateTime instantiations. Simply callĀ setCurrentMillisFixed(long) and any new DateTime() objects will use a fixed timestamp. This is a great feature which I use often in test cases to create a predictable time.

Thanks Stephen C and the rest of the Joda team for a great API!


Read Full Post »