Cron Expression Examples: 25 Schedules You Can Copy
Copy-ready cron expressions for every few minutes, daily, weekly and monthly jobs, plus the time zone and day-of-week traps that break them.

A cron expression is five fields separated by spaces: minute, hour, day of month, month and day of week. */5 * * * * runs every 5 minutes, 0 0 * * * runs every day at midnight, and 30 9 * * 1-5 runs at 9:30 on weekdays. Below are the schedules developers actually need, grouped so you can copy one, plus the three gotchas that make a job run at the wrong time: time zones, the day-of-month/day-of-week rule, and platforms that add a sixth field.
Paste any expression into the Cron Parser to see it described in plain English before you deploy it.
How a cron expression is built
┌───────────── minute (0–59)
│ ┌─────────── hour (0–23)
│ │ ┌───────── day of month (1–31)
│ │ │ ┌─────── month (1–12)
│ │ │ │ ┌───── day of week (0–6, Sunday = 0; 7 is also Sunday on most systems)
│ │ │ │ │
* * * * *
| Symbol | Meaning | Example | Reads as |
|---|---|---|---|
* |
every value | * * * * * |
every minute |
, |
a list | 0 9,17 * * * |
at 09:00 and 17:00 |
- |
a range | 0 9-17 * * * |
on the hour, 09:00 to 17:00 |
/ |
a step | */15 * * * * |
every 15 minutes |
Every few minutes or hours
| Schedule | Expression |
|---|---|
| Every minute | * * * * * |
| Every 5 minutes | */5 * * * * |
| Every 10 minutes | */10 * * * * |
| Every 15 minutes | */15 * * * * |
| Every 30 minutes | */30 * * * * |
| Every hour, on the hour | 0 * * * * |
| Every hour at 15 minutes past | 15 * * * * |
| Every 2 hours | 0 */2 * * * |
| Every 6 hours (00:00, 06:00, 12:00, 18:00) | 0 */6 * * * |
| Every 5 minutes during working hours (09:00–17:55) | */5 9-17 * * * |
A step counts from the start of its range, so */7 in the minute field fires at :00, :07, … :56 and then again at :00, which is a 4-minute gap at the top of every hour. Steps divide cleanly only when they are factors of 60 (minutes) or 24 (hours).
Daily
| Schedule | Expression |
|---|---|
| Every day at midnight | 0 0 * * * |
| Every day at 02:30 (a quiet time for backups) | 30 2 * * * |
| Every day at 09:00 | 0 9 * * * |
| Twice a day, 09:00 and 21:00 | 0 9,21 * * * |
| Every day at 23:59 | 59 23 * * * |
Weekly
| Schedule | Expression |
|---|---|
| Every Monday at 09:00 | 0 9 * * 1 |
| Weekdays (Monday–Friday) at 09:30 | 30 9 * * 1-5 |
| Weekends at 10:00 | 0 10 * * 0,6 |
| Every Friday at 17:00 | 0 17 * * 5 |
| Every Sunday at midnight | 0 0 * * 0 |
In Pakistan, where the weekend is Saturday and Sunday, a working-day job is 1-5 (Monday to Friday). For a Friday-and-Saturday weekend, as in some Gulf countries, it is 0-4 (Sunday to Thursday).
Monthly and yearly
| Schedule | Expression |
|---|---|
| First day of every month at midnight | 0 0 1 * * |
| 15th of every month at 09:00 | 0 9 15 * * |
| First day of every quarter (Jan, Apr, Jul, Oct) | 0 0 1 1,4,7,10 * |
| Every 1 January at midnight | 0 0 1 1 * |
| Every 1 July at 00:00 (start of Pakistan's fiscal year) | 0 0 1 7 * |
The last day of the month
Standard cron cannot say "last day of the month" directly. The usual trick is to run on the 28th to 31st and let the job check whether tomorrow is the 1st:
0 23 28-31 * * [ "$(date -d tomorrow +\%d)" = "01" ] && /usr/local/bin/monthly-report.sh
The % is escaped as \% because cron treats an unescaped % in a crontab as a newline. This also uses GNU date (Linux); on macOS, date -v+1d +%d does the same.
Gotcha 1: day of month and day of week are combined with OR
When both the day-of-month and day-of-week fields are restricted, standard cron runs the job when either matches, not both:
0 9 13 * 5 runs at 09:00 on the 13th of every month AND on every Friday
It does not mean "Friday the 13th". To run only on a specific weekday within a date range, restrict one field in cron and check the other inside the script. For example, the first Monday of the month:
0 9 1-7 * * [ "$(date +\%u)" = "1" ] && /usr/local/bin/first-monday.sh
Gotcha 2: the time zone is the server's, not yours
Cron uses the time zone of the machine (or the platform) it runs on, and most servers, containers and cloud schedulers run in UTC. Pakistan is UTC+5, so a job you meant for 09:00 in Lahore must be written for 04:00 UTC:
| You want (PKT, UTC+5) | Write this on a UTC server |
|---|---|
| 09:00 every day | 0 4 * * * |
| Midnight every day | 0 19 * * * (19:00 UTC the previous day) |
| 18:00 on weekdays | 0 13 * * 1-5 |
Watch for the date shift around midnight: midnight in Pakistan is 19:00 UTC on the previous calendar day, so day-of-week and day-of-month fields shift too. Check what your server uses with timedatectl or date. If you run jobs from Node.js with node-cron, set a timezone option instead of doing the maths. GitHub Actions schedule triggers always use UTC.
Pakistan does not use daylight saving time, which makes this easy. For a country that does, a job written for 09:00 local time in UTC moves by an hour twice a year unless the scheduler supports a named time zone.
Gotcha 3: some platforms add a seconds field
The expressions above are the standard five-field format used by Linux crontab, Kubernetes CronJobs, GitHub Actions and most Node.js libraries. Others differ:
| Platform | Format | Every 5 minutes |
|---|---|---|
| Linux crontab, Kubernetes, GitHub Actions | 5 fields | */5 * * * * |
node-cron (optional seconds) |
5 or 6 fields | */5 * * * * or 0 */5 * * * * |
Quartz (Java), Spring @Scheduled |
6 fields, starting with seconds | 0 */5 * * * ? (Quartz) |
| AWS EventBridge | cron(...) with 6 fields, including year |
cron(0/5 * * * ? *) |
In Quartz and EventBridge, one of day-of-month or day-of-week must be ?. If an expression from a crontab is rejected by your platform, the field count is the first thing to check.
Debugging a cron job that does not run
- Check the expression. Paste it into the Cron Parser and read the description.
- Check the time zone. Compare
dateon the server with the time you expected. - Use absolute paths. Cron runs with a minimal
PATH, sonode script.jsmight fail where/usr/bin/node /home/app/script.jsworks. - Capture the output. Append
>> /var/log/myjob.log 2>&1so errors are written somewhere you can read. - Check the cron daemon's log. On Ubuntu,
grep CRON /var/log/syslog(orjournalctl -u cron) shows whether the job started at all.
FAQ
What is the cron expression for every 5 minutes?
*/5 * * * *. It runs at :00, :05, :10 and so on, every hour of every day.
What is the cron expression for every day at midnight?
0 0 * * *, which is minute 0 of hour 0. Remember it is midnight in the server's time zone, usually UTC.
How do I run a cron job only on weekdays?
Use 1-5 in the day-of-week field: 0 9 * * 1-5 runs at 09:00 Monday to Friday.
Why did my cron job run at the wrong time?
Most often the server runs in UTC while you wrote the time in local time. In Pakistan (UTC+5), subtract five hours, or set the scheduler's time zone explicitly.
What does 0 0 1 * * mean in cron?
At 00:00 on the first day of every month.
Try the related tools
Related articles

JWT Expired? How to Debug 401 Unauthorized Errors Step by Step
Decode the token, read the exact jsonwebtoken error, and fix expired tokens, invalid signatures, clock skew and audience mismatches.
Read article
UUID vs Auto-Increment IDs: Which Primary Key Should You Use?
Size, index performance, security and UUID v7 compared, with real examples for PostgreSQL, MySQL and MongoDB, and the hybrid most apps need.
Read article
How Accurate Is IP Geolocation? What Your IP Address Reveals
IP geolocation is reliable for the country, rough for the city and never shows a house. Why, what it does reveal, and how to use it well.
Read article