Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
/ parse-cron Public archive
forked from siebertm/parse-cron

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

License

Notifications You must be signed in to change notification settings

acima-credit/parse-cron

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%