Skip to content

jvdadda/android-timeago

Repository files navigation

Android timeago library

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

Usage

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"

Changelog

  • 1.1

  • Fixed crash when displaying days, months or years number

  • 1.0

  • Initial release

Contribution

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

Other

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages