0.0
Low commit activity in last 3 years
No release in over a year
Converts a human-readable time (e.g. 10:15 daily) into a cron format (e,g, 15 10 * * *)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.1, >= 0.1.19
~> 0.10, >= 0.10.2
>= 0.6.0, ~> 0.6
>= 0.2.0, ~> 0.2
 Project Readme

Introducing the chronic_cron gem

This gem which is under development aims to facilitate plain english for cron times.

e.g.

require 'chronic_cron'

Time.now          #=> 2013-07-07 18:35:49 +0100
cc = ChronicCron.new('Fire at 10:15am every day')
cc.to_time        #=> 2013-07-08 10:15:00 +0100

cc.to_expression  #=> => "15 10 * * *"
cc.next           #=> 2013-07-09 10:15:00 +0100
cc.to_time        #=> 2013-07-09 10:15:00 +0100

cc = ChronicCron.new 'at 11:00 and 16:00 on every day'
cc.to_time        #=> 2013-07-08 11:00:00 +0100
cc.to_expression  #=> "00 11,16 * * *"

chronic_cron gem cron time expression