Wiki

Clone wiki

scheduler-cron / TimeExecutor

TimeExecutor

It is designed for execution in specified date

Options

  • date - the date when function will be executed

    type: Date

  • func - the function that will be executed

    type: function

    • returns: undefined

Methods

  • cancel - cancels function execution

    returns: 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