1.0.0 • Published 7 years ago
howlongago v1.0.0
howlongago
A simple module to compare a datetime with now date
#Usage
Install the dependency
npm install howlongago --save
Add imports (javascript)
let hlag = require('howlongago');
Add imports (nodejs)
let hlag=require("howlongago");
get the date compare
console.log(howlongago(new Date('2017-10-05 20:59:22')))
1.0.0
7 years ago