Skip to content

kevinsawicki/java-timeago

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Java timeago library

This is a Java port of the jquery-timeago plug-in.

Building

The org.github.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

Usage

TimeAgo time = new TimeAgo();
String minutes = time.timeAgo(System.currentTimeMillis() - (15*60*1000)); // returns "15 minutes ago"

Contribution

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

Other

MIT License

About

Java timeago library

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages