# Cron Expression Parser

> Cron expression parser: explain a crontab line field by field and list the next 5 run times in your time zone or UTC. Supports @daily, */5, ranges, lists and names.

Source: https://widgetpantry.com/en/cron-expression-parser · Türkçe: https://widgetpantry.com/tr/cron-ifadesi-cozucu

Type a cron expression (e.g. */15 9-17 * * 1-5) to see what its minute, hour, day, month and weekday fields mean and when the job runs next. Shortcuts such as @daily and @hourly work too.

Runs in your browser: files and text are not uploaded. [Use the tool](https://widgetpantry.com/en/cron-expression-parser)

## How to use it

1. Type a five-field cron expression or tap an example.
2. Read what each field means in the table.
3. Check the next run times in your local time or in UTC.

## How to read a cron expression

A standard cron expression has five fields separated by spaces: minute (0–59), hour (0–23), day of month (1–31), month (1–12 or JAN–DEC) and day of week (0–6 with Sunday as 0; 7 is also Sunday; SUN–SAT). * means every value, a-b a range, a,b a list and */n every n steps. For example 30 2 * * 1 runs every Monday at 02:30 and */10 * * * * every ten minutes.

When both day of month and day of week are restricted (neither is *), cron runs on days matching either one: 0 0 1 * 1 runs on the 1st of every month and on every Monday. When one of them starts with *, only the other one counts.

Times follow the server's time zone. If your server runs on UTC, switch on "Show times in UTC" to compare. Six-field (seconds) Quartz or Spring expressions are not supported.

## From the blog

- [Cron Expression Examples: Syntax Explained With 20 Schedules](https://widgetpantry.com/en/cron-expression-examples): The five cron fields, how *, commas, ranges and steps work, shortcuts like @daily, and ready-to-copy crontab examples: every 5 minutes, weekdays at 8:30, the first of every month and more.

## Frequently asked questions

### Is */5 different from 0/5?

In the minute field both mean 0, 5, 10 … 55. 3/5 means 3, 8, 13 … 58: the number before the slash is where it starts.

### Why didn't my job run when I expected?

Usually it is the time zone: servers often run on UTC while you may not. Show the next runs in UTC and compare them with your server's time zone.

### What do @daily and @hourly mean?

They are shortcuts: @hourly is 0 * * * *, @daily and @midnight are 0 0 * * *, @weekly is 0 0 * * 0, @monthly is 0 0 1 * *, @yearly and @annually are 0 0 1 1 *. @reboot is not a time, so it is not calculated.

### Do six-field expressions with seconds work?

No. The tool reads the five-field format used by Linux crontab, GitHub Actions and Kubernetes CronJobs. Quartz and Spring expressions with a seconds field are different.

## Related tools

- [Work Hours Calculator](https://widgetpantry.com/en/work-hours-calculator): Work hours calculator: daily and weekly totals from start and end times minus breaks, decimal hours and pay at an hourly rate. Handles night shifts.
- [Days Between Dates](https://widgetpantry.com/en/days-between-dates): Count the days and business days between two dates without leap-year or daylight-saving mistakes. Include the end date and see weeks, weekdays and weekend days.
- [Regex Tester](https://widgetpantry.com/en/regex-tester): Online regex tester: try a regular expression on your text, see highlighted matches, capture groups and positions, and preview replacements with $1. Free, runs in your browser.
