Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroadame committed May 5, 2015
1 parent d9d4689 commit 55fc3b9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

This is a Java port of the [jquery-timeago](https://github.com/rmm5t/jquery-timeago) plug-in. Please visit the [jquery-timeago](http://rmm5t.github.com/jquery-timeago/) project page to read more about fuzzy timestamps.

It supports English, Spanish and Italian at the time.

##Importing the library
Use Jitpack.io ([check here](https://jitpack.io/#Kinnonii/java-timeago/timeago-1.1.0))
Use Jitpack.io ([check here](https://jitpack.io/#Kinnonii/java-timeago/timeago-1.1.3))

##Usage

```java
TimeAgo time = new TimeAgo('en'); //For English text.
TimeAgo time = new TimeAgo('en'); //For English text.
//TimeAgo time = new TimeAgo('it'); //For Italian text.
//TimeAgo time = new TimeAgo('es'); //For Spanish text.


long current = System.currentTimeMillis();
String minutes = time.timeAgo(current - (15 * 60 * 1000)); // returns "15 minutes ago"
Expand Down

0 comments on commit 55fc3b9

Please sign in to comment.