Skip to content

jjrdn/interval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

interval

A small library for creating and using time intervals using common units of time instead.

install

npm install interval or add interval as a dependency in your package.json file and npm install

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 'days', 'hours', 'minutes', 'seconds' and 'milliseconds'. You can use as many or as few units as you want and they are applied cumulatively.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published