Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

get_next_runs.js 393B

123456789101112131415161718192021222324
  1. const CronJob = require('../lib/cron.js').CronJob;
  2. const job = new CronJob(
  3. '0 * * * * *',
  4. function() {
  5. console.log('Date: ', new Date());
  6. },
  7. null,
  8. true
  9. );
  10. console.log('System TZ next 5: ', job.nextDates(5));
  11. const jobUTC = new CronJob(
  12. '0 * * * * *',
  13. function() {
  14. console.log('Date: ', new Date());
  15. },
  16. null,
  17. true,
  18. 'UTC'
  19. );
  20. console.log('UTC next 5: ', jobUTC.nextDates(5));