Frontend Javascript NodeJS

Timeago.js

What?

Timeago is a jQuery plugin that makes it easy to support automatically updating fuzzy timestamps (e.g. “4 minutes ago” or “about 1 day ago”). View the examples, and enjoy.

  • You opened this page about a minute ago
  • This page was last modified about 15 hours ago.
  • Ryan was born 40 years ago.

Why?

Timeago was originally built for use with Yarp.com to timestamp comments.

  • Avoid timestamps dated “1 minute ago” even though the page was opened 10 minutes ago; timeago refreshes automatically.
  • You can take full advantage of page caching in your web applications, because the timestamps aren’t calculated on the server.
  • You get to use standard HTML5 tags.

How?

  1. timeago.js is a simple library (less than 1 kb) that is used to format datetime with *** time ago statement. eg: ‘3 hours ago’.
  2. International higly customizable relative date/time formatter (both for past and future dates).
  3. timeago: a jQuery plugin

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *