*/20 * * * *
Cron expression
Every 20 minutes
Schedule
Open in the Cron Expression Generator →
What */20 * * * * means
Cron reads five fields from left to right: minute, hour, day of the month, month and day of the week. For every 20 minutes they are:
| Field | Value | Meaning | Allowed |
|---|---|---|---|
| Minute | */20 | every 20 minutes | 0–59 |
| Hour | * | every hour | 0–23 |
| Day of month | * | every day of the month | 1–31 |
| Month | * | every month | 1–12 |
| Day of week | * | every day of the week | 0–6 (Sun–Sat) |
Next runs
Calculated in your browser for your time zone. On a server, cron uses the server’s time zone (often UTC).
- Enable JavaScript to see the next run times.
Typical uses
- Batch processing
- Syncing a CRM
Use it in crontab, GitHub Actions, Kubernetes and Node.js
crontab (crontab -e):
*/20 * * * * /usr/local/bin/my-job.sh >> /var/log/my-job.log 2>&1
GitHub Actions (times are UTC):
on:
schedule:
- cron: '*/20 * * * *'
Kubernetes CronJob:
apiVersion: batch/v1
kind: CronJob
metadata:
name: my-job
spec:
schedule: "*/20 * * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: my-job
image: alpine:3
command: ["sh", "-c", "echo running"]
Node.js (node-cron):
import cron from 'node-cron';
cron.schedule('*/20 * * * *', () => {
// your job
});
Related schedules
- Every minute —
* * * * * - Every 2 minutes —
*/2 * * * * - Every 5 minutes —
*/5 * * * * - Every 10 minutes —
*/10 * * * * - Every 15 minutes —
*/15 * * * * - Every 30 minutes —
*/30 * * * * - Every 30 seconds —
* * * * *
Build your own scheduleTurn any schedule into a cron expression — or any expression into plain English — with the next run times.
Open the Cron Generator Frequently asked questions
What is the cron expression for every 20 minutes?
*/20 * * * *. It runs at every 20 minutes.Which time zone does cron use?
Classic cron uses the server’s local time zone, and many servers run in UTC. GitHub Actions always uses UTC. Kubernetes CronJobs use the controller’s time zone unless you set
spec.timeZone (for example Europe/Berlin).How do I test a cron expression?
Paste it into the Cron Expression Generator to see it in plain English with the next run times, then check your job’s log after the first scheduled run.