friendly-time
1.1.1 • Public • Published friendly-time
Prints human friendly timestamps (eg. just now, 5 minutes ago, 3 days from now).
Usage
var friendlyTime = require('friendly-time');
var now = new Date();
var minutes = new Date(now - (1000 * 60 * 5));
var days = new Date(now + (1000 * 60 * 60 * 24 * 3));
friendlyTime(now);
friendlyTime(minutes);
friendlyTime(days);
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
1.1.1 | 61 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.1.1 | 61 | |
1.1.0 | 0 | |
1.0.0 | 0 | |
Package Sidebar
Install
Weekly Downloads