Project

crontab

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A crontab(5) entry parser
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

What is this?¶ ↑

A crontab(5) parser.

Usage¶ ↑

crontab = Crontab.parse(src)

from_date = Date.parse('2009-10-10')
to_date = Date.parse('2009-10-20')

crontab.entries.each do |e|
  puts e.command
  e.schedule.from(from_date).until(to_date) do |timing|
    puts timing
  end
end