Timeago makes user-friendly time formatting easier by supporting automatically updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").

With Timeago's automatic updating feature, you take full advantage of page caching in your web applications since the timestamp formatting is done in client side. Also, Timeago refreshes timestamps automatically to avoid timestamps dated "1 minute ago" even though the page was opened 10 minutes ago.

Timeago jQuery Plugin can be used via selectors. In this case, it replaces the text of the provided element with a class of timeago and an ISO 8601 timestamp in the title. If used as function, a string containing a formatted version of the provided time stamp is returned.

Published under: MIT License | Formatting

blog comments powered by Disqus