abstract const classcron::CronSchedule

sys::Obj
  cron::CronSchedule

@Serializable { simple=true }

CronSchedule defines a schedule for when a CronJob should run.

fromStr

Source

static new fromStr(Str str, Bool checked := true)

trigger

Source

abstract Bool trigger(DateTime now, DateTime? last)

Return true if this schedule triggers for the given timestamp.