Kubernetes Hub / cron

CronJob Schedule

Compute the next runs of a spec.schedule with timezone support, just like a Kubernetes CronJob.

cron expression
minute0–59
hour0–23
day (m)1–31
month1–12
day (w)0–6 (sun=0)
spec.timeZone
/
schedule: "0 9 * * 1-5"
timeZone: "Europe/Rome"
syntax reference
*any value
5exact value
1,3,5list of values
1-5range (1 through 5)
*/15step (every 15)
1-9/2step within range
sun-satday names (sun=0)
jan-decmonth names
gianluca@k8s ~ cronjob
gianluca@k8s:~$ next-runs --schedule "0 9 * * 1-5" --tz Europe/Rome
# next 5 scheduled runs
gianluca@k8s:~$