Skip to content

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

License

Notifications You must be signed in to change notification settings

sergeyhoh/parse-cron

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parse-cron - parse crontab syntax & determine next scheduled run 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 * * * *')

# Comming times
next_comming_time = cron_parser.next(Time.now)

# Times that have been
most_resently_time = cron_parser.last(Time.now)

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published