Package Exports
- interval
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (interval) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
interval
A small library for creating and using time intervals using common units of time instead.
install
npm install interval --save
usage
var interval = require('interval');
// set timeouts and intervals more literately
setTimeout(foo, interval({ hours: 2 }));
// the date 10 days from today
var deadline = interval.add(new Date(), { days: 10 });The supported units of time are:
- 'weeks'
- 'days'
- 'hours'
- 'minutes'
- 'seconds'
- 'milliseconds'
You can use as many or as few units as you want and they are applied cumulatively.
