I would like to format periods of time into English and other languages, like Joda Time does.
However I want an easy way to just list the most significant field or two, for example "2 years and three months" or "5 days" without me having to write code to handle this. The problem with Joda Time is it gives you output like "2 years, three months and five days" unless you write code.
There are libraries like Pretty Time which do exactly what I want but only for comparisons of times with now, like "3 months ago". I just want "3 months".
Surely there must be a library that acts like Pretty Time but for generic durations?
I'm specifically using Grails / Groovy, but a plain Java solution is equally acceptable.