Oban.Cron

oban · API reference

Match standard five-field UTC cron expressions with Ptime.

type t
type error = [ 
  | `Invalid_expression of string
 ]
val parse : string -> (t, error) result
val matches : t -> Ptime.t -> bool
val next_after : t -> Ptime.t -> Ptime.t option

Search at most one 400-year Gregorian calendar cycle.