Skip to content

Syntax and time zones

CronBeat takes standard five field cron expressions:

┌───────── minute (0-59)
│ ┌─────── hour (0-23)
│ │ ┌───── day of month (1-31)
│ │ │ ┌─── month (1-12 or JAN-DEC)
│ │ │ │ ┌─ day of week (0-7 or SUN-SAT, 0 and 7 are Sunday)
│ │ │ │ │
* * * * *

Anything other than five fields is rejected. Seconds are not supported.

Internally CronBeat adds a leading seconds field of 0 and evaluates the expression with Spring’s CronExpression, so the syntax is Spring’s. For example 30 2 * * * becomes 0 30 2 * * *.

Syntax Example Meaning
* * * * * * Every value.
list , 0 8,12,18 * * * 08:00, 12:00 and 18:00.
range - 0 9-17 * * * Every hour from 09:00 to 17:00.
step / */15 * * * * Every 15 minutes.
names 0 9 * JAN-MAR MON-FRI Month and weekday names, case insensitive.
Sunday 0 0 * * 0 or 0 0 * * 7 Both mean Sunday.
L 0 0 L * * Last day of the month.
W 0 0 15W * * Weekday nearest to the 15th.
# 0 0 * * MON#2 Second Monday of the month.
? 0 0 ? * MON No specific value (day of month or day of week).
Day of month and day of week together

In classic Vixie cron, restricting both fields means either may match. With Spring’s CronExpression both must match: 0 0 13 * FRI fires only on a Friday the 13th. Prefer restricting one of the two fields.

Macro Same as
@hourly 0 * * * *
@daily, @midnight 0 0 * * *
@weekly 0 0 * * 0
@monthly 0 0 1 * *
@yearly, @annually 0 0 1 1 *

Every cron monitor has a time zone (an IANA name such as Europe/Istanbul or America/New_York). The expression is evaluated as wall clock time in that zone. Use the zone your scheduler uses; a server on UTC running 0 2 * * * needs the monitor zone UTC, not your local zone.

CronBeat does all date math with the JDK time zone rules, it does not implement its own.

  • Clocks go back (a wall clock time happens twice). A job scheduled at a fixed wall clock time is expected once, at the first occurrence. The repeated hour is not expected, otherwise a job that really runs once would trigger a false alarm. For example 30 1 * * * in America/New_York is expected once on 2026-11-01. An hourly expression (0 * * * *) is not expected at the second 01:00 either, so on that day the gap between two expected runs is two hours. Your grace period covers the difference for most setups.
  • Clocks go forward (a wall clock time does not exist). A time that does not exist that day is skipped by the calculation. For example 30 2 * * * in America/New_York has no expected run on 2026-03-08; the next one is on 2026-03-09. If your scheduler runs the job anyway (some run it right after the jump), the success ping is simply accepted.

Clocks differ a little, so a job can send its ping a few seconds before the expected time (for example at 01:59:58 for a 02:00 schedule). If the next expected time computed from a ping lies 30 seconds or less after that ping, CronBeat skips to the following run, so the early ping does not cause a false alarm for the run that just happened. The rule only applies when two consecutive runs are 5 minutes or more apart; it is off for jobs that run more often than that.

In the monitor form the app shows a plain language description of the expression and the next five run times in the selected time zone. Check it there before saving.