This project can format your timestamp to a semantic string
You can input a timestamp such as '1472136067700' and you can get a string such as '24 Seconds Ago'
First, install timetostring:
npm install timetostring
Next, import this package to your javascript code:
let timeToString = require('./index');
Finally, use this function:
console.log( timeToString(1472136067700) );
© 2016 IWenKu.net Copyright All Reversed.