Unix Cron to Quartz Cron Converter

Paste a Unix cron expression to get the equivalent Quartz cron trigger expression — seconds and year fields added, day-of-week renumbered, and the day-of-month/day-of-week "?" rule applied automatically.

Close equivalent Covers the common case, but has documented behavioral differences.

Unix cron
0 9 * * 1-5
Quartz cron
0 0 9 ? * 2-6 *

Main limitation: Quartz adds a leading seconds field and a trailing year field that Unix cron doesn't have; this converter fills seconds with "0" (Unix cron implicitly fires at second 0) and the year with "*" (Unix cron has no year concept, so "every year" is the only faithful mapping) — both are exact, not guesses.

Examples

Weekday mornings at 9am

Unix cron 0 9 * * 1-5
Quartz cron 0 0 9 ? * 2-6 *

Unix Monday–Friday (1-5) becomes Quartz 2-6 after renumbering (Quartz Sunday=1, so Monday=2); day-of-month is set to "?" since day-of-week is the restricted field.

Every 15 minutes

Unix cron */15 * * * *
Quartz cron 0 */15 * * * ? *

Neither day-of-month nor day-of-week is restricted, so Quartz's "?" goes on day-of-week by convention, matching how most published Quartz examples are written.

Caveats

Caveat

Quartz adds a leading seconds field and a trailing year field that Unix cron doesn't have; this converter fills seconds with "0" (Unix cron implicitly fires at second 0) and the year with "*" (Unix cron has no year concept, so "every year" is the only faithful mapping) — both are exact, not guesses.

Caveat

Quartz numbers day-of-week 1–7 with Sunday=1; Unix cron numbers it 0–6 (and accepts 7) with Sunday=0. Numeric values and ranges are renumbered automatically; day names (MON, TUE, ...) are left unchanged since they mean the same thing everywhere.

Caveat

Quartz requires exactly one of day-of-month or day-of-week to be "?" — even when both would otherwise be "*". If your Unix expression restricts both fields at once (their OR semantics), that combination has no single-value Quartz equivalent and is flagged for manual review instead of guessed.

References

  • crontab(5) — POSIX cron expression format (man7.org) — checked 2026-07-29
  • Quartz Scheduler docs — CronTrigger Tutorial — checked 2026-07-29

Last verified 2026-07-29.