Cron Schedule and Next Run Time Calculator

Last updated

Parses a cron expression under the chosen scheduler's rules into sets of allowed minutes, hours, days, months and weekdays, plus seconds and years where the dialect has them, then steps forward from the start minute in the schedule's time zone and lists the next 10 matching times in that zone, in UTC and in yours. Day fields combine by each dialect's rule, clock changes follow each scheduler's own rules, and averages count a 400-year Gregorian cycle.

Next run –
Time until next run –
In plain English –
Average runs per day –
Average runs per month –
Average runs per year –
Equivalent expression –
Notes –
Next 10 runs

Paste a cron expression, choose the scheduler that will run it, and the calculator lists the next 10 times the job fires in the schedule's time zone, in UTC and in yours. It also reads the expression back in plain English and works out how often it runs. The start is the current time when the page loads, and runs are listed strictly after that minute. Six schedulers are offered because they disagree in ways that move real jobs: how weekdays are numbered, whether the two day fields combine with AND or with OR, which shortcuts exist, and what happens when the clocks change.

How the calculator reads a schedule

Each field becomes a set of allowed values: minutes, hours, days of the month, months and weekdays, plus seconds and years where the scheduler has them. A list such as 1,15 adds values, a range such as 9-17 adds a run of them, and a step such as */15 keeps every 15th value counting from the field's first, so */15 in the minute field means minutes 0, 15, 30 and 45. The calculator then walks forward day by day from the start, in the schedule's time zone, keeps the days that pass the day, month and year fields, and lists every allowed time on those days. Wall-clock times become instants through the time zone rules in your browser, which the ECMA-402 standard requires to come from the IANA time zone database.

The averages do not depend on the start. They count matching days across one 400-year cycle of the Gregorian calendar, where only every fourth century year is a leap year. The cycle holds 146,097 days, which is exactly 20,871 weeks, and 4,800 months, so weekdays, month lengths and leap days keep their true proportions:

runs per day = T × D ÷ 146,097

Here T is the number of times a matching day fires (the allowed seconds × minutes × hours) and D is the number of days in the cycle that match. Runs per month divide the same product by 4,800 and runs per year by 400. When an EventBridge or Quartz year field names particular years, those years become the window instead. The averages count wall-clock times, so they ignore daylight saving.

A worked example

The default is 0 9 * * 1-5 under Linux crontab, in UTC, starting at 08:00 on Monday 2 November 2026. Minute 0 and hour 9 give one time a day, so T = 1. The day-of-month field is *, so only the weekday field restricts the day, and Monday to Friday are 5 of every 7 days. Across the cycle that is 5 × 20,871 = 104,355 days, the same five-in-seven count you get when counting weekdays between two dates. Runs per day are 104,355 ÷ 146,097 = 0.71, runs per month 104,355 ÷ 4,800 = 21.74, and runs per year 104,355 ÷ 400 = 260.89.

The first run after 08:00 is 09:00 the same day, shown as Mon, 2 Nov 2026 09:00 UTC and one hour away, which is plain time between two clock times. Its Unix time is 1,793,610,000, the count of seconds since the Unix epoch. The tenth run is Friday 13 November at 09:00, and the equivalent EventBridge expression is cron(0 9 ? * MON-FRI *). On a device in New York the start reads as 08:00 New York time, which is 13:00 UTC, so the first listed run becomes Tuesday 3 November at 09:00 UTC, 20 hours away, shown locally as 04:00 UTC−5.

Where the five fields came from

The Sixth Edition Unix manual page for cron, dated 25 October 1974, already described five fields: minute (0–59), hour (0–23), day of the month (1–31), month (1–12) and day of the week (1–7, with 1 for Monday). That cron examined its table every hour; by the Seventh Edition manual of January 1979 it looked every minute. Paul Vixie's rewrite, whose version 1.0 is dated 6 May 1987 and version 3.0 27 December 1993, added most of what people type today. His notes on version 3 record that several people asked for * to take a step, which he added, and that one asked for N/step to mean N to the end in steps, which he called "stretching things a bit far". Vixie cron also accepts three-letter names and treats Sunday as both 0 and 7 because, as his notes put it, BSD and AT&T apparently disagreed. The current POSIX standard still defines only numbers, ranges, comma lists and *. Cronie began on 17 August 2007 from the vixie-cron 4.1 sources, and its 1.7.2 release of 8 April 2024 is the Linux crontab modelled here.

The day-of-month and day-of-week trap

When both day fields are restricted, a day that matches either one runs the job. Cronie's manual gives 30 4 1,15 * 5 as 4:30 am on the 1st and 15th of each month plus every Friday, 6.06 runs a month on average, not just the Fridays that fall on those dates. Vixie wrote that he did not invent this; it is how cron had always worked. Cronie decides whether a field is restricted from its first character, so in 0 0 */2 * 1 the */2 counts as unrestricted and both fields must match: Mondays on odd dates, 2.22 runs a month. Kubernetes parses schedules with the robfig/cron library, which drops the * flag when a step above 1 is used, so the same text there runs on odd dates or on Mondays, 17.65 runs a month.

Six schedulers, six dialects

Kubernetes CronJobs take five fields with weekdays 0–6, treat ? like *, accept the @yearly to @hourly shortcuts, and use the controller's local time zone unless .spec.timeZone is set, a field that became stable in Kubernetes 1.27. Their parser also accepts @every 1h30m, which counts from when the CronJob was created or last ran, so the calculator explains it instead of listing times. GitHub Actions takes POSIX syntax in UTC unless the workflow names a time zone, an option GitHub announced on 19 March 2026. It does not support the @ shortcuts.

AWS EventBridge wraps six fields in cron(): minutes, hours, day of month, month, day of week and a year from 1970 to 2199. Weekdays run 1–7 from Sunday, one of the two day fields must be ?, and L, W and # pick the last day, the nearest weekday or the nth weekday of the month. Scheduled rules always run in UTC, while EventBridge Scheduler accepts any IANA zone. Quartz puts a seconds field first, takes an optional year from 1970 to 2099 in its tutorial, and adds LW and offsets such as L-3 to the same specials.

When the clocks change

US daylight time starts at 2 a.m. on the second Sunday of March and ends at 2 a.m. on the first Sunday of November. In New York, 14 March 2027 therefore has no 02:30, and 7 November 2027 has two 01:30s. The schedulers handle this in five different ways:

  • Cronie runs a fixed-time job from the skipped interval right after the jump, so 30 2 * * * runs at 03:00 UTC−4, and it avoids a second run when time goes back. In cronie's source, a job whose minute or hour field starts with * runs normally, so it loses the skipped times and repeats the doubled ones.
  • GitHub Actions moves a skipped time to the next valid one, so a 2:30 schedule runs at 3:00. It does not document the repeated hour, which the calculator lists once.
  • EventBridge Scheduler skips a time that does not exist and runs a repeated time once, before the shift.
  • Kubernetes adds real hours as it searches, so a skipped time never comes up and a repeated one comes up twice. This comes from reading robfig/cron's code, not from Kubernetes documentation. Where a shift is not a whole hour, that search can also add or miss a run, which the notes flag.
  • Quartz sets clock fields on a Java calendar, which reads a repeated wall time as standard time, so 0 30 1 * * ? runs once at 01:30 UTC−5, after the change. A skipped time is skipped. Its tutorial only warns that a change can cause "a skip or a repeat".

Limits

These are due times, not start times. GitHub can delay runs and drop some under heavy load, Kubernetes creates a Job approximately once per scheduled time, and EventBridge Scheduler invokes its target with 60-second precision. Cronie's special clock-change handling assumes the schedule's zone is the server's own; for jobs with their own CRON_TZ, cronie's source warns that jobs can be missed or run twice. Time zone rules come from your browser's copy of the IANA database, so far-future runs can move if a government changes its rules. The start does not tick, so reload the page for a fresh countdown.

Frequently asked questions

What does */15 mean in a cron expression?

It means every 15th value of that field, counted from the field's first value. In the minute field, */15 is minutes 0, 15, 30 and 45, which is 96 runs a day. Steps restart in every hour or day instead of carrying over, so */23 in the hour field runs at hours 0 and 23, as cronie's manual notes, and */35 in the minute field runs at :00 and :35.

Why does my cron job run on the 1st and on every Friday?

When both the day-of-month and the day-of-week fields are restricted, cron runs on days that match either one. Cronie's manual gives 30 4 1,15 * 5 as 4:30 am on the 1st and 15th plus every Friday, which averages 6.06 runs a month. If either day field starts with *, cronie requires both to match instead, so 0 0 */2 * 1 runs only on Mondays that fall on odd dates.

How is an EventBridge cron expression different from crontab?

EventBridge wraps six fields in cron(), ending with a year from 1970 to 2199. One of the two day fields must be a question mark, weekdays run from 1 to 7 starting on Sunday, and L, W and # pick the last day, the nearest weekday and the nth weekday of the month. Weekdays at 09:00 is 0 9 * * 1-5 in crontab and cron(0 9 ? * MON-FRI *) in EventBridge.

What happens to a cron job when the clocks change?

It depends on the scheduler. Cronie runs a fixed-time job from a skipped interval right after the change and avoids running it twice when time goes back. EventBridge Scheduler skips a time that does not exist and runs a repeated time once. GitHub Actions moves a skipped 2:30 run to 3:00. Kubernetes, by its cron library's code, skips a missing time and runs a repeated one twice.

Which time zone does a cron schedule use?

Linux crontab uses the server's local zone unless the crontab sets CRON_TZ. Kubernetes uses the kube-controller-manager's zone unless .spec.timeZone is set, and rejects TZ or CRON_TZ inside the schedule. GitHub Actions uses UTC unless the workflow names an IANA time zone. EventBridge scheduled rules always use UTC, while EventBridge Scheduler takes any IANA zone.

What limits does GitHub Actions put on scheduled workflows?

The shortest interval is once every 5 minutes, and runs can be delayed during periods of high load, when some queued jobs may be dropped. Scheduled workflows run only on the default branch, and in a public repository they are disabled automatically after 60 days without repository activity.

Sources

  1. crontab (IEEE Std 1003.1-2024, The Open Group Base Specifications Issue 8), The Open Group and IEEE, 2024
  2. Unix Programmer's Manual, Sixth Edition: cron (VIII), dated 25 October 1974, The Unix Heritage Society, 1974
  3. Unix Programmer's Manual, Seventh Edition: cron(8), The Unix Heritage Society, 1979
  4. Vixie Cron V3.0 README, Paul Vixie, vixie/cron on GitHub, 1993
  5. Vixie Cron V3.0 CHANGES, Paul Vixie, vixie/cron on GitHub, 1993
  6. Vixie Cron V3.0 FEATURES, Paul Vixie, vixie/cron on GitHub, 1993
  7. cronie ChangeLog, cronie-1.7.2, cronie project, 2024
  8. crontab(5) manual page, cronie 1.7.2, cronie project, 2024
  9. cron(8) manual page, cronie 1.7.2, cronie project, 2024
  10. cronie source: src/entry.c, cronie-1.7.2, cronie project, 2024
  11. cronie source: src/cron.c, cronie-1.7.2, cronie project, 2024
  12. CronJob, Kubernetes documentation
  13. Kubernetes v1.37.2: pkg/util/parsers/parsers.go, kubernetes/kubernetes on GitHub, 2026
  14. Kubernetes v1.37.2: pkg/controller/cronjob/utils.go, kubernetes/kubernetes on GitHub, 2026
  15. robfig/cron v3.0.1: parser.go, robfig/cron on GitHub, 2020
  16. robfig/cron v3.0.1: spec.go, robfig/cron on GitHub, 2020
  17. Events that trigger workflows: schedule, GitHub Docs
  18. GitHub Actions: Late March 2026 updates, GitHub Changelog, 2026
  19. Setting a schedule pattern for scheduled rules (legacy) in Amazon EventBridge, Amazon Web Services
  20. Creating a scheduled rule (legacy) in Amazon EventBridge, Amazon Web Services
  21. Schedule types in EventBridge Scheduler, Amazon Web Services
  22. Quartz 2.3.0 Tutorial: CronTrigger, Quartz Scheduler
  23. CronExpression.java, Quartz v2.5.2, quartz-scheduler on GitHub, 2025
  24. GregorianCalendar.java, OpenJDK jdk-21+35, OpenJDK on GitHub, 2023
  25. 15 U.S. Code 260a: Advancement of time or changeover dates, Legal Information Institute, Cornell Law School
  26. Calendar (New Style) Act 1750, legislation.gov.uk, The National Archives
  27. ECMA-402 Internationalization API Specification: Use of the IANA Time Zone Database, Ecma International TC39