Runs in your browser — nothing you enter leaves this pageVixie/POSIX cron · Fugit (Solid Queue, sidekiq-cron)
Five fields, six with seconds first, a macro such as @daily, or a Solid Queue phrase such as "every day at 5 pm".

Defaults to your browser's zone. A zone written in the expression takes precedence.
Generate a recurring task
Lowercase, digits and underscores.

A cron expression has five fields separated by spaces: minute, hour, day of month, month and day of week. Most mistakes come from two places: the day rule, which surprises most people, and the time zone, which decides when “5 AM” actually happens.

How the grammar works

Each field accepts the same building blocks:

FieldAllowed valuesNames
Minute0 to 59none
Hour0 to 23none
Day of month1 to 31none
Month1 to 12JAN to DEC
Day of week0 to 7, where 0 and 7 are SundaySUN to SAT

Macros replace the whole expression: @hourly, @daily (also @midnight), @weekly (Sunday at midnight), @monthly and @yearly (also @annually). Macros have no seconds field.

Fugit and sidekiq-cron also accept a six-field form with seconds first, such as */15 * * * * *. Standard system cron does not.

The day-of-month and day-of-week rule

This is the rule that surprises people. If you restrict both the day-of-month and the day-of-week fields, a run happens when either one matches. The expression 30 4 1,15 * 5 runs at 04:30 on the 1st, on the 15th and on every Friday. It does not run only on Fridays that fall on the 1st or the 15th.

Only a bare * counts as unrestricted. A stepped field such as */2 is restricted, so 0 0 */2 * 1-5 runs on odd-numbered days or on weekdays. That is how Fugit evaluates it, and Fugit is the parser behind both Solid Queue and sidekiq-cron: Fugit’s own example shows this expression firing on Wednesday 10 August 2022, an even-numbered day. Classic Vixie cron treats any field that starts with * as unrestricted and would require both conditions, so the same line can behave differently in a system crontab. The tool follows Fugit and names the rule in its description.

Time zones and daylight saving

An expression runs in the selected zone, unless it ends with a zone name, as in 0 5 * * * America/New_York, which wins. Wall-clock times are converted to UTC with the browser’s time zone data, so the answer depends on that year’s rules.

Two cases in each year break simple arithmetic:

If your application’s zone differs from the zone you meant, state it in the expression. A schedule without a zone follows whatever zone the scheduler uses.

Solid Queue: recurring.yml and natural language

Solid Queue reads config/recurring.yml. Each task has a key, a job class (or a command), optional queue, priority and args, and a schedule. The generator produces this shape for 0 3 * * *:

production:
  nightly_cleanup:
    class: CleanupJob
    queue: background
    args: [ 1000 ]
    schedule: "0 3 * * *"

Solid Queue passes the schedule string to Fugit, which accepts cron and a small English vocabulary. The tool converts the documented forms, such as every day at 5 pm, every tuesday and monday at 5pm, every weekday at five, every 15s and every 4 months, and reports anything else as unsupported. Paste a phrase into the expression box and the generated YAML carries the cron equivalent, which Fugit reads the same way.

For how jobs are claimed and run once a schedule fires, read how Solid Queue works. For the choice between the two backends, read Solid Queue vs Sidekiq.

sidekiq-cron

sidekiq-cron stores its schedule as a hash keyed by job name, with cron, class, queue and args. The generator writes that form as well. The cron string is parsed with Fugit, so the six-field form also works there.

A worked example

Take 0 5 * * 1-5 America/New_York: 05:00 Eastern on weekdays. Starting from 10:17 UTC on Thursday 26 November 2026, the next run is Friday 27 November at 10:00 UTC, which is 05:00 Eastern Standard Time. The next-runs table lists the UTC instant beside each run, so you can check it against your logs.

Limitations

Frequently asked questions

Why did my job run on a Friday when I asked for the 15th?

When both the day-of-month and day-of-week fields are restricted, cron runs the job on any day that matches either one. Plain cron cannot say "the 15th, but only if it is a Friday". Check the weekday inside the job instead.

What happens to a job at a daylight saving change?

A time that does not exist, such as 02:30 on the night clocks move forward, is skipped. A time that happens twice, such as 01:30 when clocks move back, runs once, at the first occurrence.

Can Solid Queue read a plain cron string?

Yes. The schedule value is parsed by Fugit, which accepts standard five-field cron, six-field cron with seconds, macros, and a subset of English phrases such as "every day at 5 pm". This tool converts those phrases to cron.

Is what I type sent anywhere?

No. The parser, the next-run calculation and the YAML generator all run in your browser, and the page makes no network requests.

Get new articles by email

Deep dives on Rails reliability, when they're published. No spam.