react-smart-time-ago

1.0.5 • Public • Published

react-smart-time-ago

Show relative "time ago" dates for anything in last two weeks and absolute dates from then on back

Two days ago => two days ago

Older than two weeks => Jul 4 2014

Install

npm install react-smart-time-ago

Usage

var SmartTimeAgo = require('react-smart-time-ago');
 
var time = new Date();
 
<SmartTimeAgo value={time} />

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    1
    • latest

Version History

Package Sidebar

Install

npm i react-smart-time-ago

Weekly Downloads

17

Version

1.0.5

License

MIT

Last publish

Collaborators

  • kylemathews