CloudwatchChrono
Wrapper of chrono for Amazon CloudWatch Events Cron Expressions.
Iterator
Parses cron syntax and determines next scheduled run.
Time.now #=> 2020-05-01 19:57:52.020655 +0900
iterator = CloudwatchChrono::Iterator.new("0 18 ? * MON-FRI *")
iterator.next #=> 2020-05-04 18:00:00 +0900
iterator.next #=> 2020-05-05 18:00:00 +0900
iterator.next #=> 2020-05-06 18:00:00 +0900
Syntax
See https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions