class CronParser

Defined in:

cron_parser.cr

Constant Summary

SUBELEMENT_REGEX = /^(\d+)(-(\d+)(\/(\d+))?)?$/
SYMBOLS = {"jan" => "1", "feb" => "2", "mar" => "3", "apr" => "4", "may" => "5", "jun" => "6", "jul" => "7", "aug" => "8", "sep" => "9", "oct" => "10", "nov" => "11", "dec" => "12", "sun" => "0", "mon" => "1", "tue" => "2", "wed" => "3", "thu" => "4", "fri" => "5", "sat" => "6"}
VERSION = "0.4.0"

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(source) #

[View source]

Instance Method Detail

def last(now : Time, num : Int32) #

[View source]
def last(now = Time.local) #

returns the last occurence before the given date


[View source]
def next(now : Time, num : Int32) #

[View source]
def next(now = Time.local) #

returns the next occurence after the given date


[View source]
def parse_element(elem, allowed_range) #

[View source]

Macro Detail

macro array_result(name) #

[View source]