timeago.js

timeago.js is a simple library (only 2kb) to used to format datetime with *** time ago statement. eg: '3 hours ago'. localization supported.

timeagodatetime*** time agodatejavascript timeago

http://timeago.org