set-dateout

Run a function at the specified JavaScript date

MIT 3 个版本
安装
npm install set-dateout
yarn add set-dateout
pnpm add set-dateout
bun add set-dateout
README

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

版本列表
2.0.1 2014-09-25
2.0.0 2014-09-25
1.0.0 2014-09-25