echosoar / timeToString

timeToString by javascript or nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TimeToString

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.

About

timeToString by javascript or nodejs


Languages

Language:JavaScript 100.0%