Wiki
Clone wikischeduler-cron / TimeExecutor
TimeExecutor
It is designed for execution in specified date
Options
-
date
- the date when function will be executedtype: Date
-
func
- the function that will be executedtype: function
- returns: undefined
Methods
-
cancel
- cancels function executionreturns: undefined
How to use
var TimeExecutor = require('scheduler-cron').TimeExecutor; new TimeExecutor(new Date(2016, 4, 15), function() { console.log('It's my birthday!'); });
Updated