time-diff-checker

1.0.2 • Public • Published

time-diff-checker

time-diff-checker is a package to give you time difference with current time. for example difference will be in year, month, date, hour, minutes and seconds. this is generally built to show time in feed as facebook, twitter and other social media are showing how much hours before you have posted any post.

installation

npm install --save time-diff-checker

Dependencies

npm install --save moment

Usage

let timeDiff = require('time-diff-checker');

Example :

let date = new Date();
console.log(timeDiff(date)) // 50 is length of string```

Package Sidebar

Install

npm i time-diff-checker

Weekly Downloads

3

Version

1.0.2

License

ISC

Unpacked Size

3.33 kB

Total Files

3

Last publish

Collaborators

  • aankitkumar31