Skip to content

tripbuddy-app/TimeAgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimeAgo Utils

A little class that shows when ago that a particular event happened.

Usage

TimeAgoUtils.timeAgo(new Date());    // Just a short string representation
==> 1s, now, 2s, 1y, 1mo, 1wk

TimeAgoUtils.timeAgo(new Date(), true); // If you want a longer string
==> just now, last year, a week, a month ago, 5 years ago, 3 weeks ago

Who is using it?

We are currently using this in our android app.

image

Author

Tawheed Raheem (c) 2015

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages