Java implementation of converting time to words (RoR distance_of_time_in_words and time_ago_in_words)

Do you know if there is a Java implementation of distance_of_time_in_words and time_ago_in_words?

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

Example:

  • 3 days
  • A week ago
  • 2 minutes ago
  • Over a year ago
+3
source share
1 answer
+4
source

Source: https://habr.com/ru/post/1734389/


All Articles