Cron Format Comparison
Different platforms use different cron syntax. Here is how they compare.
Standard Unix (crontab)
5 fieldsField order
minute hour day-of-month month day-of-weekExample
*/5 * * * *The original and most widely used. 0=Sunday for day-of-week. No seconds, no year. Used by crontab, most Linux systems, and many libraries.
Learn more →Quartz Scheduler (Java)
6-7 fieldsField order
second minute hour day-of-month month day-of-week [year]Example
0 */5 * * * ?Adds seconds as the first field and optional year as the last. Uses 1-7 for days (1=Sunday, not 0=Sunday). Requires ? in either day-of-month or day-of-week. Supports special chars: L (last), W (weekday), # (nth).
Learn more →AWS EventBridge / CloudWatch
6 fieldsField order
minute hour day-of-month month day-of-week yearExample
*/5 * * * ? *Appends year (not seconds). Requires ? in either day-of-month or day-of-week. Also supports rate expressions: rate(5 minutes). Always runs in UTC.
Learn more →Spring Boot (@Scheduled)
6 fieldsField order
second minute hour day-of-month month day-of-weekExample
0 */5 * * * *Same as Quartz but without the year field and without requiring ?. The seconds field is mandatory. Also supports fixedRate and fixedDelay (ms) as alternatives. Supports timezone via zone attribute.
Learn more →Azure Functions (NCronTab)
6 fieldsField order
second minute hour day-of-month month day-of-weekExample
0 */5 * * * *Same 6-field format as Spring. Used in Azure Functions timer triggers and Logic Apps. The seconds field enables sub-minute scheduling.
Learn more →Vercel Cron Jobs
5 fieldsField order
minute hour day-of-month month day-of-weekExample
*/5 * * * *Standard 5-field syntax. Configured in vercel.json. Hobby plan: 1hr minimum, 1 job. Pro plan: 1min minimum, 10 jobs. Always UTC. 30-second timeout.
Learn more →GitHub Actions
5 fieldsField order
minute hour day-of-month month day-of-weekExample
*/5 * * * *Standard POSIX cron syntax. Minimum interval is 5 minutes. Schedules may be delayed during high load. Always runs in UTC. Only triggers on the default branch.
Learn more →Kubernetes CronJob
5 fieldsField order
minute hour day-of-month month day-of-weekExample
*/5 * * * *Standard 5-field syntax. Timezone support added in v1.27 (timeZone field). Key settings: concurrencyPolicy (Allow/Forbid/Replace), startingDeadlineSeconds, suspend.
Learn more →Databricks
5-7 (Quartz) fieldsField order
second minute hour day-of-month month day-of-week [year]Example
0 */5 * * * ?Uses Quartz-style cron expressions. Supports ? wildcard and 1-7 day numbering. Used in job scheduling and notebook triggers.
Learn more →