1.1.1 • Published 5 years ago

from-this-moment v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

from-this-moment

Build Status dependencies Status devDependencies Status License: MIT

A light weight npm moulde gives the time difference

Happy hacking =)

Installation

npm install --save from-this-moment

Usage

import ftm from 'from-this-moment' (or)

var ftm = require('from-this-moment')

ftm(dateTo, dateFrom)

by default dateFrom is referenced to the current timedate.

ftm('Sat Mar 24 2019 0:32:01 GMT+0530 (India Standard Time)');

output: 23 minutes ago

ftm('Sat Mar 25 2019 0:32:01 GMT+0530 (India Standard Time)');

output: In 23 hours

ftm('Sat Mar 25 2017 0:32:01 GMT+0530 (India Standard Time)', 'Sat Mar 25 2019 0:32:01 GMT+0530 (India Standard Time)');

output: 2 years ago

License

MIT © PDK Pavan Kumar

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago