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
  • 40,240
  • 36
  • 196
  • 259
Manolo Santos
  • 1,905
  • 1
  • 14
  • 25

1 Answers1

4

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

miku
  • 172,072
  • 46
  • 300
  • 307