Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
timeago [maven-release-plugin] prepare for next development iteration Dec 29, 2012
.gitignore Bump README version to 1.0.1 Dec 29, 2012

Java timeago library

This is a Java port of the jquery-timeago plug-in. Please visit the jquery-timeago project page to read more about fuzzy timestamps.


The timeago project contains a Maven pom.xml file that builds a jar containing the TimeAgo class.

To build and run the included unit tests:

$ mvn clean install


TimeAgo time = new TimeAgo();
long current = System.currentTimeMillis();
String minutes = time.timeAgo(current - (15 * 60 * 1000));  // returns "15 minutes ago"
String hours = time.timeUntil(current - (6 * 60 * 60 * 1000));  // returns "6 hours from now"


This library is available from Maven Central.



If you would like to contribute locale-specific properties files please fork this repository and open a pull request.


MIT License