Created
March 24, 2020 10:24
-
-
Save lewispb/cc1f1b781dd182f3622a824b56b8e8db to your computer and use it in GitHub Desktop.
Find out when a Rufus scheduler cron will run next n times
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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