Is there Java class or some sample code that can convert a java Date or Timestamp into something like:
"3 hours"
" 20 seconds"
"25 minutes"
I need those strings in my web application to show how much it took to generate a file (in a pretty print way of course 🙂 )
Thanks,
With JodaTime:
P.S. Also it’s very easy to get the number of hours/seconds/minutes between 2 time points.