Are there any cons to using Joda-Time?

I’ve had almost entirely positive experiences with Joda Time. My one problem was when trying to construct my own time zone (for legitimate reasons, I assure you 🙂 I got some very weird exceptions, and the documentation wasn’t very good for that particular use case.

However, for the most part it’s been a joy to use – immutability makes code a lot easier to reason about, and thread-safety for formatters is hugely useful.

Yes, there are files to keep up to date – but at least you can keep them up to date. It’s not like they contain things which were unnecessary with Java’s built-in stuff, it’s just that with Java’s mechanism you just couldn’t keep information like timezones up to date without significant hackery!

Basically, +1 for using Joda Time. The Java date/time API is one of the worst bits of the Java platform, IMO.

Leave a Comment