Skip to content

Instantly share code, notes, and snippets.

@lewispb
Created March 24, 2020 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lewispb/cc1f1b781dd182f3622a824b56b8e8db to your computer and use it in GitHub Desktop.
Save lewispb/cc1f1b781dd182f3622a824b56b8e8db to your computer and use it in GitHub Desktop.
Find out when a Rufus scheduler cron will run next n times
require 'rufus-scheduler'
scheduler = Rufus::Scheduler.new
job = scheduler.schedule_cron('0 7 * * 6 America/Denver') { }
job.next_times(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment