Cron expression examples
Every common schedule in one place. Each page explains the expression field by field, shows the next run times, and gives copy-paste examples for crontab, Kubernetes and GitHub Actions. Need something custom? Use the cron generator.
Seconds (6-field)1
Minutes9
Every minute
* * * * *
Every 2 minutes
*/2 * * * *
Every 5 minutes
*/5 * * * *
Every 10 minutes
*/10 * * * *
Every 15 minutes
*/15 * * * *
Every 20 minutes
*/20 * * * *
Every 30 minutes
*/30 * * * *
Every 45 minutes
*/45 * * * *
At minutes 0 and 45 past the hour.
Every 15 minutes in business hours
*/15 9-17 * * 1-5
Every 15 minutes, between 9:00 AM and 5:59 PM, Monday through Friday.
Hours6
Every hour
0 * * * *
At 0 minutes past the hour.
Every 2 hours
0 */2 * * *
At 0 minutes past the hour, every 2 hours.
Every 3 hours
0 */3 * * *
At 0 minutes past the hour, every 3 hours.
Every 4 hours
0 */4 * * *
At 0 minutes past the hour, every 4 hours.
Every 6 hours
0 */6 * * *
At 0 minutes past the hour, every 6 hours.
Every 12 hours
0 */12 * * *
At 0 minutes past the hour, every 12 hours.
Days & weekdays10
Every day at midnight
0 0 * * *
At 12:00 AM.
Every night at 2 AM
0 2 * * *
At 2:00 AM.
Every day at 9 AM
0 9 * * *
At 9:00 AM.
Every weekday (Monday to Friday)
0 9 * * 1-5
At 9:00 AM, Monday through Friday.
Every weekday at 8 AM
0 8 * * 1-5
At 8:00 AM, Monday through Friday.
Every Monday
0 9 * * 1
At 9:00 AM, only on Monday.
Every Friday
0 9 * * 5
At 9:00 AM, only on Friday.
Every Saturday
0 10 * * 6
At 10:00 AM, only on Saturday.
Every Sunday
0 0 * * 0
At 12:00 AM, only on Sunday.
Every weekend
0 10 * * 6,0
At 10:00 AM, on weekends (Saturday and Sunday).
Months & years5
The first day of every month
0 0 1 * *
At 12:00 AM, on day 1 of the month.
The 1st and 15th of every month
0 0 1,15 * *
At 12:00 AM, on days 1 and 15 of the month.
The last day of every month
55 23 28-31 * *
At 11:55 PM, between day 28 and 31 of the month.
Every quarter
0 0 1 */3 *
At 12:00 AM, on day 1 of the month, only in January, April, July, and October.
Every year
0 0 1 1 *
At 12:00 AM, on day 1 of the month, only in January.
Cron generators by platform
The examples above use Unix crontab syntax. For schedulers with their own format — seconds, a year field, Sunday as 1, Jenkins H or Airflow presets — use the generator for your platform:
Quartz Cron Expression Generator
0 0 8 ? * MON-FRI
Spring Cron Expression Generator
0 0 8 * * MON-FRI
AWS Cron Expression Generator
0 8 ? * MON-FRI *
Jenkins Cron Expression Generator
H 2 * * 1-5
Salesforce Cron Expression Generator
0 0 8 ? * MON-FRI
Hangfire Cron Expression Generator
0 8 * * 1-5
Airflow Cron Expression Generator
0 6 * * 1-5
node-cron Expression Generator
0 30 8 * * 1-5