https://github.com/devonchurch/pineapple-lumps
A smart date tool for comparing the duration between two dates
https://github.com/devonchurch/pineapple-lumps
Last synced: about 1 year ago
JSON representation
A smart date tool for comparing the duration between two dates
- Host: GitHub
- URL: https://github.com/devonchurch/pineapple-lumps
- Owner: devonChurch
- License: mit
- Created: 2016-06-11T02:55:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-19T10:14:13.000Z (almost 10 years ago)
- Last Synced: 2024-03-24T23:42:26.045Z (about 2 years ago)
- Language: JavaScript
- Size: 66.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pineapple Lumps
A smart date tool for comparing the duration between the current time and a given date reference expressed in a verbalised format.
## Todo's
***This project is still a work in progress.***
- Add in an event duration comparison.
- Have the ability to extract, change and compare different time zones on the fly.
## Installation
- Install the package as a dependancy.
```
npm install pineapple-lumps --save
```
- Require the package into your project
``` javascript
const pineappleLumps = require('pineapple-lumps');
```
- Pass in a date reference to get the comparison.
``` javascript
const comparison = pineappleLumps('2016-01-01T09:45:00+12:00'); // In three days, 1st Jan 2016
```
## License
MIT