3

Do you know if it exists a java implementation of distance_of_time_in_words and time_ago_in_words?

For those who don't know, these methods return a human readable description of the time interval between two dates or between a date and now.

By example:

  • 3 days
  • A week ago
  • 2 minutes ago
  • More than a year ago
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
Manolo Santos
  • 1,915
  • 1
  • 14
  • 25

1 Answers1

4

Have you looked at http://code.google.com/p/prettytime/?

miku
  • 181,842
  • 47
  • 306
  • 310