You already know cron has five fields. What bites experienced developers is everything the five-fields tutorial skips: the Sunday ambiguity, the */5 vs 0/5 divergence, and what happens when a schedule meets daylight saving.

Every cron guide opens the same way: "cron has five fields — minute, hour, day of month, month, day of week." You know this. And you can still get paged at 3 a.m. because a job that was supposed to run every five minutes ran every minute, or a nightly task did something odd one Sunday in March. The five fields aren't the hard part. The hard part is a short list of behaviours that are documented somewhere other than the tutorial. Dates and times below are for Europe/Bratislava (CET in winter, CEST in summer) and were computed in Python, as of 10 November 2026.

The fields, in one breath

Minute (0–59), hour (0–23), day of month (1–31), month (1–12), day of week (0–7 on many systems). A * means "every." A list is comma-separated, a range uses a hyphen, a step uses a slash. That's enough for 0 9 * * 1 (9 a.m. every Monday). For scale: */5 in the minute field fires 288 times a day; a bare * fires 1,440. Now the parts that trip people.

1. The Sunday problem

In the day-of-week field, Sunday has two numbers on common Linux crons. Wikipedia's crontab diagram labels the field:

"day of the week (0–6) (Sunday to Saturday; 7 is also Sunday on some systems)"

— Wikipedia, "Cron" (CC BY-SA 4.0)

The cronie crontab(5) manual and Debian's cron crontab(5) both give the range as 0–7, with 0 or 7 meaning Sunday, and both accept names like sun. "On some systems" is the warning, and it gets sharper outside classic cron. AWS EventBridge numbers day-of-week 1–7 as SUN–SAT, so in EventBridge a 1 is Sunday, not Monday. Copy 0 9 * * 1 across without translating and your Monday job may run on the wrong day, or fail to parse. When you mean a specific day, the three-letter name is usually the least ambiguous choice; check that the target accepts it.

2. */5 vs 0/5 vs 5/5

In classic cron, */5 in the minute field means "every 5 minutes starting at 0" — :00, :05, :10, and so on. Steps also work on ranges: 5-59/5 gives :05, :10 … :55. EventBridge's documented examples use a different notation, 0/5, for "every 5 minutes from minute 0", and its expressions have six fields (adding a year) and a ? wildcard for the day field you aren't constraining. Its examples are all stated in UTC.

These look interchangeable in a code review. They aren't, because the field count and the meaning of each position differ. A five-field expression pasted into a six-field scheduler shifts every value one place along. Before trusting a step expression someone else wrote, confirm which dialect the target speaks, and read the target's own documentation rather than a general cron tutorial.

3. Daylight saving collisions

Schedule a job for 30 2 * * * — 02:30 every day — on a host set to Bratislava time, and twice a year that instant does something strange.

The 2027 changes fall on 28 March and 31 October. What cron does at those boundaries depends on the implementation, so read its manual. Debian's cron(8) documents its behaviour for clock changes of under three hours: jobs that would have run in skipped time "will be run soon after the change", and jobs in repeated time "will not be re-run". That applies only to jobs at a fixed time; jobs with * in the hour or minute field "are run based on the new time immediately". Other crons and schedulers may behave differently. The simplest way to avoid the question is to keep fixed-time jobs out of roughly 02:00–03:00 local time on a DST host, or run the host on UTC.

4. The timezone you didn't set

System cron typically runs in the server's timezone, not yours and not your users'. Take "09:00 every Monday in Bratislava":

DateLocal timeUTC
Mon 16 Nov 202609:00 CET08:00
Mon 14 Jun 202709:00 CEST07:00

If you write 0 8 * * 1 on a UTC server, it's right in winter and an hour late in summer (10:00 CEST). There's no single UTC expression that stays at 09:00 local all year. Your options are to accept the hour shift, change the expression at each DST change, or use a scheduler that takes a timezone and handles it for you. Whichever you choose, leave a comment saying what local time the expression is meant to represent, and check the next fire times in the cron parser.

5. The day-of-month / day-of-week trap

Here's the one that reads backwards. In 0 9 1 * 1, most people see "9 a.m. on Mondays that fall on the 1st." Both crontab(5) pages above say that if both day fields are restricted, the command runs when either matches. So it's 9 a.m. on the 1st of every month and 9 a.m. every Monday. Across 2027 that expression fires on 61 days; only three of them — 1 February, 1 March and 1 November — are both. If you need "the 1st only when it's a Monday," gate it inside the job with a date check. Getting this wrong means a report meant to run rarely runs every week.

Common mistakes

Build it, then verify what it actually does

The reliable workflow is two steps. Assemble the expression with the cron builder so the field structure is correct — then paste it into the cron parser to read back the next several fire times. The builder tells you the syntax is valid. The parser tells you whether "valid" means what you meant. Both use standard five-field crontab syntax, so translate before using a result in EventBridge or another dialect.

← All articles