This is an Android port of the jquery-timeago plug-in. Please visit the jquery-timeago project page to read more about fuzzy timestamps.
long current = System.currentTimeMillis();
String minutes = TimeAgo.timeAgo(current - (15 * 60 * 1000)); // returns "15 minutes ago"
String hours = TimeAgo.timeUntil(current - (6 * 60 * 60 * 1000)); // returns "6 hours from now"
-
1.1
-
Fixed crash when displaying days, months or years number
-
1.0
-
Initial release
If you would like to contribute locale-specific properties files please fork this repository and open a pull request.