siebertm/parse-cron

parses cron expressions and calculates the next occurence after a given date

148

stars

48

commits

Ruby

primary language

Apr 2, 2026

updated

README

Parse-Cron

Parse crontab syntax to determine scheduled run times Build Status

The goal of this gem is to parse a crontab timing specification and determine when the job should be run. It is not a scheduler, it does not run the jobs.

API example

cron_parser = CronParser.new('30 * * * *')

# Next occurrence
next_time = cron_parser.next(Time.now)

# Last occurrence
most_recent_time = cron_parser.last(Time.now)

Contributors

siebertm

27 commits

meesterdude

3 commits

lmc

3 commits

siebertm/parse-cron

parses cron expressions and calculates the next occurence after a given date

148

stars

48

commits

Ruby

primary language

Apr 2, 2026

updated

README

Parse-Cron

Parse crontab syntax to determine scheduled run times Build Status

The goal of this gem is to parse a crontab timing specification and determine when the job should be run. It is not a scheduler, it does not run the jobs.

API example

cron_parser = CronParser.new('30 * * * *')

# Next occurrence
next_time = cron_parser.next(Time.now)

# Last occurrence
most_recent_time = cron_parser.last(Time.now)

Contributors

siebertm

27 commits

meesterdude

3 commits

lmc

3 commits

Languages

Ruby

100.0%