set-dateout

2.0.1 • Public • Published

set-dateout

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

Package Sidebar

Install

npm i set-dateout

Weekly Downloads

2

Version

2.0.1

License

MIT

Last publish

Collaborators

  • balderdashy