module
JosieHealth::Utils::Recurrence
Defined in:
recurrence.crConstant Summary
-
DAYS_OF_WEEK =
{"monday" => 1, "tuesday" => 2, "wednesday" => 3, "thursday" => 4, "friday" => 5, "saturday" => 6, "sunday" => 7}
Class Method Summary
- .first_trigger(pattern : String, from_time : Time = Time.utc) : Int64
- .format(pattern : String) : String
- .format_compact(total_seconds : Int32) : String
- .format_human(total_seconds : Int32) : String
- .next_day_of_week(target_day : Int32, from_time : Time) : Time
- .next_trigger(pattern : String, from_time : Time = Time.utc) : Int64
- .parse_day_of_week(pattern : String) : Int32 | Nil
- .parse_interval(pattern : String) : Int32 | Nil
- .valid?(pattern : String) : Bool