interval
A small library for creating and using time intervals using common units of time instead.
install
npm install interval --save
usage
var interval = ; // set timeouts and intervals more literately; // the date 10 days from todayvar deadline = interval;
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.