module

Cronic::Handlers

Class methods

dealias_and_disambiguate_times(tokens, ambiguous_time_range : Int32 | Nil = 6, **options)
Source

Instance methods

day_or_time(day_start : Time, time_tokens, context : PointerDir = PointerDir::Future, **options) : Timespan | Nil
Source
find_within(tags, span : Nil, pointer : PointerDir)

Method overload. If span is nil, output is nil.

Source
find_within(tags, span : Timespan, pointer : PointerDir) : Timespan | Nil

Recursively finds repeaters within other repeaters. Returns a Timespan representing the innermost time span or nil if no repeater union could be found

Source
get_anchor(tokens, context = PointerDir::None, **options)
Source
get_repeaters(tokens)
Source
handle_generic(tokens, text = "", **options)

Handle generic timestamp

Source
handle_o_r_g_r(tokens, **options)

Handle ordinal/repeater/grabber/repeater

Source
handle_o_r_s_r(tokens, **options)

Handle ordinal/repeater/separator/repeater

Source
handle_od_rm(tokens, **options)

Handle ordinal this month

Source
handle_od_rmn(tokens, **options) : Timespan | Nil

Handle ordinal-day/repeater-month-name

Source
handle_od_rmn_sy(tokens, **options)

Handle oridinal-day/repeater-month-name/scalar-year

Source
handle_ordday(tokens, text = "", **options)
Source
handle_p_s_r(tokens, **options)

Handle pointer/scalar/repeater

Source
handle_r(tokens, **options)

Handle repeaters

Source
handle_r_g_r(tokens, **options)

Handle repeater/grabber/repeater

Source
handle_rdn_od(tokens, context = PointerDir::Future, **options)

Handle RepeaterDayName OrdinalDay

Source
handle_rdn_rmn_od(tokens, **options)

Handle RepeaterDayName RepeaterMonthName OrdinalDay

Source
handle_rdn_rmn_od_sy(tokens, **options)

Handle RepeaterDayName RepeaterMonthName OrdinalDay ScalarYear

Source
handle_rdn_rmn_sd(tokens, **options)

Handle RepeaterDayName RepeaterMonthName ScalarDay

Source
handle_rdn_rmn_sd_sy(tokens, **options)

Handle RepeaterDayName RepeaterMonthName ScalarDay ScalarYear

Source
handle_rdn_rmn_sd_t_tz_sy(tokens, text = "", **opts)
Source
handle_rfc3339(tokens, text = "", **options)
Source
handle_rfc3339_no_tz(tokens, text = "", **options)

Actually SY-SM-SD-RT

Source
handle_rmn_od(tokens, **options)

Handle repeater-month-name/ordinal-day

Source
handle_rmn_od_on(tokens, **options)

Handle repeater-month-name/ordinal-day with separator-on

Source
handle_rmn_od_sy(tokens, **options)

Handle repeater-month-name/ordinal-day/scalar-year

Source
handle_rmn_s_r_p(tokens, **options)

Handle repeater/scalar/repeater/pointer

Source
handle_rmn_sd(tokens, **options)

Handle repeater-month-name/scalar-day

Source
handle_rmn_sd_on(tokens, **options)

Handle repeater-month-name/scalar-day with separator-on

Source
handle_rmn_sd_sy(tokens, **options)

Handle repeater-month-name/scalar-day/scalar-year

Source
handle_rmn_sy(tokens, **options)

Handle repeater-month-name/scalar-year

Source
handle_rqn_sy(tokens, **options)

Handle repeater-quarter-name/scalar-year

Source
handle_s_r_a_s_r_p_a(tokens, **options)
Source
handle_s_r_p(tokens, **options)

Handle scalar/repeater/pointer

Source
handle_s_r_p_a(tokens, **options)

Handle scalar/repeater/pointer/anchor

Source
handle_sd_rmn(tokens, **options)

Handle scalar-day/repeater-month-name

Source
handle_sd_rmn_sy(tokens, **options)

Handle scalar-day/repeater-month-name/scalar-year

Source
handle_sd_sm(tokens, **options)

Handle scalar-day/scalar-month

Source
handle_sd_sm_sy(tokens, **options)

Handle scalar-day/scalar-month/scalar-year (endian little)

Source
handle_sm_rmn_sy(tokens, **options)
Source
handle_sm_sd(tokens, context = PointerDir::Future, **options)

Handle scalar-month/scalar-day

Source
handle_sm_sd_sy(tokens, **options)

Handle scalar-month/scalar-day/scalar-year (endian middle)

Source
handle_sm_sy(tokens, **options)

Handle scalar-month/scalar-year

Source
handle_sy_rmn_od(tokens, **options)
Source
handle_sy_rqn(tokens, **options)

Handle scalar-year/repeater-quarter-name

Source
handle_sy_sm(tokens, **options)

Handle scalar-year/scalar-month

Source
handle_sy_sm_sd(tokens, **options)

Handle scalar-year/scalar-month/scalar-day

Source
handle_year_and_month(year : Int32, month : Int32)
Source
subhandle_m_d(month, day, time_tokens, context = PointerDir::None, **options)

Handle month/day

Source
subhandle_orr(tokens, outer_span, **options)

Handle ordinal repeaters

Source
subhandle_srp(tokens, span : Timespan, **options) : Timespan | Nil

Handle scalar/repeater/pointer helper

Source
xxhandle_rfc3339_no_tz(tokens, text = "", **options)

timestamp similar to rfc3339 but without trailing timezone

Source