Skip to content

mikermcneil/set-dateout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

icon of a life preserver set-dateout

Bower version NPM version     Build Status

Like setTimeout, but for dates in the far future. (specifically, this module overcomes the 32-bit integer overflow issue)

Install

$ npm install set-dateout

Use

var setDateout = require('set-dateout');

setDateout(function (){
  console.log('yeah!! it\'s a new century, baby!!');
}, new Date('January 1, 2100'));

License

MIT

solution modified from http://stackoverflow.com/a/18182660

About

Like setTimeout, but for dates in the far future

Resources

Stars

Watchers

Forks

Packages