module Cronic::Handlers
Direct including types
Defined in:
cronic/handlers.crClass Method Summary
Instance Method Summary
- #day_or_time(day_start : Time, time_tokens, context : PointerDir = PointerDir::Future, **options) : Timespan | Nil
-
#find_within(tags, span : Nil, pointer : PointerDir)
Method overload.
-
#find_within(tags, span : Timespan, pointer : PointerDir) : Timespan | Nil
Recursively finds repeaters within other repeaters.
- #get_anchor(tokens, context = PointerDir::None, **options)
- #get_repeaters(tokens)
-
#handle_generic(tokens, text = "", **options)
Handle generic timestamp
-
#handle_o_r_g_r(tokens, **options)
Handle ordinal/repeater/grabber/repeater
-
#handle_o_r_s_r(tokens, **options)
Handle ordinal/repeater/separator/repeater
-
#handle_od_rm(tokens, **options)
Handle ordinal this month
-
#handle_od_rmn(tokens, **options) : Timespan | Nil
Handle ordinal-day/repeater-month-name
-
#handle_od_rmn_sy(tokens, **options)
Handle oridinal-day/repeater-month-name/scalar-year
- #handle_ordday(tokens, text = "", **options)
-
#handle_p_s_r(tokens, **options)
Handle pointer/scalar/repeater
-
#handle_r(tokens, **options)
Handle repeaters
-
#handle_r_g_r(tokens, **options)
Handle repeater/grabber/repeater
-
#handle_rdn_od(tokens, context = PointerDir::Future, **options)
Handle RepeaterDayName OrdinalDay
-
#handle_rdn_rmn_od(tokens, **options)
Handle RepeaterDayName RepeaterMonthName OrdinalDay
-
#handle_rdn_rmn_od_sy(tokens, **options)
Handle RepeaterDayName RepeaterMonthName OrdinalDay ScalarYear
-
#handle_rdn_rmn_sd(tokens, **options)
Handle RepeaterDayName RepeaterMonthName ScalarDay
-
#handle_rdn_rmn_sd_sy(tokens, **options)
Handle RepeaterDayName RepeaterMonthName ScalarDay ScalarYear
- #handle_rdn_rmn_sd_t_tz_sy(tokens, text = "", **opts)
- #handle_rfc3339(tokens, text = "", **options)
-
#handle_rfc3339_no_tz(tokens, text = "", **options)
Actually SY-SM-SD-RT
-
#handle_rmn_od(tokens, **options)
Handle repeater-month-name/ordinal-day
-
#handle_rmn_od_on(tokens, **options)
Handle repeater-month-name/ordinal-day with separator-on
-
#handle_rmn_od_sy(tokens, **options)
Handle repeater-month-name/ordinal-day/scalar-year
-
#handle_rmn_s_r_p(tokens, **options)
Handle repeater/scalar/repeater/pointer
-
#handle_rmn_sd(tokens, **options)
Handle repeater-month-name/scalar-day
-
#handle_rmn_sd_on(tokens, **options)
Handle repeater-month-name/scalar-day with separator-on
-
#handle_rmn_sd_sy(tokens, **options)
Handle repeater-month-name/scalar-day/scalar-year
-
#handle_rmn_sy(tokens, **options)
Handle repeater-month-name/scalar-year
-
#handle_rqn_sy(tokens, **options)
Handle repeater-quarter-name/scalar-year
- #handle_s_r_a_s_r_p_a(tokens, **options)
-
#handle_s_r_p(tokens, **options)
Handle scalar/repeater/pointer
-
#handle_s_r_p_a(tokens, **options)
Handle scalar/repeater/pointer/anchor
-
#handle_sd_rmn(tokens, **options)
Handle scalar-day/repeater-month-name
-
#handle_sd_rmn_sy(tokens, **options)
Handle scalar-day/repeater-month-name/scalar-year
-
#handle_sd_sm(tokens, **options)
Handle scalar-day/scalar-month
-
#handle_sd_sm_sy(tokens, **options)
Handle scalar-day/scalar-month/scalar-year (endian little)
- #handle_sm_rmn_sy(tokens, **options)
-
#handle_sm_sd(tokens, context = PointerDir::Future, **options)
Handle scalar-month/scalar-day
-
#handle_sm_sd_sy(tokens, **options)
Handle scalar-month/scalar-day/scalar-year (endian middle)
-
#handle_sm_sy(tokens, **options)
Handle scalar-month/scalar-year
- #handle_sy_rmn_od(tokens, **options)
-
#handle_sy_rqn(tokens, **options)
Handle scalar-year/repeater-quarter-name
-
#handle_sy_sm(tokens, **options)
Handle scalar-year/scalar-month
-
#handle_sy_sm_sd(tokens, **options)
Handle scalar-year/scalar-month/scalar-day
- #handle_year_and_month(year : Int32, month : Int32)
-
#subhandle_m_d(month, day, time_tokens, context = PointerDir::None, **options)
Handle month/day
-
#subhandle_orr(tokens, outer_span, **options)
Handle ordinal repeaters
-
#subhandle_srp(tokens, span : Timespan, **options) : Timespan | Nil
Handle scalar/repeater/pointer helper
-
#xxhandle_rfc3339_no_tz(tokens, text = "", **options)
timestamp similar to rfc3339 but without trailing timezone
Class Method Detail
Instance Method Detail
Method overload. If span is nil, output is nil.
Recursively finds repeaters within other repeaters. Returns a Timespan representing the innermost time span or nil if no repeater union could be found
Handle ordinal-day/repeater-month-name
Handle RepeaterDayName OrdinalDay
Handle RepeaterDayName RepeaterMonthName OrdinalDay ScalarYear
Handle RepeaterDayName RepeaterMonthName ScalarDay ScalarYear
Handle scalar-month/scalar-day
Handle month/day
Handle scalar/repeater/pointer helper
timestamp similar to rfc3339 but without trailing timezone