mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
573 B
573 B
lib.cron.new
Creates a new cronjob, scheduling a task to run at fixed times or intervals.
Supports numbers, any value *, lists 1,2,3, ranges 1-3, and steps */4.
Day of the week is a range of 1-7 starting from Sunday and allows short-names (i.e. sun, mon, tue).
lib.cron.new(expression, job, options)
- expression:
- string A cron expression such as
* * * * *representing minute, hour, day, month, and day of the week
- string A cron expression such as
- job:
- fun(task:
OxTask, date:osdate)
- fun(task:
- options?:
- debug?:
boolean
- debug?: