Cron Expression Examples
Copy-ready cron expressions for common schedules, each with a field-by-field breakdown, upcoming run times and versions for Kubernetes, GitHub Actions, Quartz and Spring.
35 schedules · Open in Cron Expression Parser
Every few minutes
Every minute
* * * * * Runs the job at the start of every minute, 1,440 times a day. Every 30 seconds * * * * * Cron cannot schedule below one minute, so the usual trick is two crontab lines: one runs at the top of each minute and the other sleeps 30 seconds first. Every 2 minutes */2 * * * * Runs at every even minute: 00, 02, 04 … 58 past each hour. Every 5 minutes */5 * * * * Runs 12 times an hour, at minutes 0, 5, 10 … 55. Every 10 minutes */10 * * * * Runs six times an hour, at minutes 0, 10, 20, 30, 40 and 50. Every 15 minutes */15 * * * * Runs four times an hour, at :00, :15, :30 and :45. Every 30 minutes */30 * * * * Runs twice an hour, on the hour and at half past. Every few hours
Every hour
0 * * * * Runs at minute 0 of every hour, 24 times a day. Same as the @hourly macro. Every 2 hours 0 */2 * * * Runs at minute 0 of every even hour: 00:00, 02:00, 04:00 … 22:00. Every 3 hours 0 */3 * * * Runs eight times a day at 00:00, 03:00, 06:00 … 21:00. Every 4 hours 0 */4 * * * Runs six times a day at 00:00, 04:00, 08:00, 12:00, 16:00 and 20:00. Every 6 hours 0 */6 * * * Runs four times a day at 00:00, 06:00, 12:00 and 18:00. Every 12 hours 0 */12 * * * Runs twice a day at midnight and noon. Daily
Every day at midnight
0 0 * * * Runs once a day at 00:00. Same as the @daily and @midnight macros. Every day at 3 AM 0 3 * * * Runs once a day at 03:00, a common time for backups and maintenance. Every day at 8 AM 0 8 * * * Runs once a day at 08:00, for example morning reports or reminders. Every day at noon 0 12 * * * Runs once a day at 12:00. Every day at 6 PM 0 18 * * * Runs once a day at 18:00. Twice a day 0 0,12 * * * Runs at 00:00 and 12:00 every day. Change the hour list to pick other times. Weekly and weekdays
Every weekday at 9 AM
0 9 * * 1-5 Runs at 09:00 Monday through Friday and skips weekends. Every hour during business hours 0 9-17 * * 1-5 Runs on the hour from 09:00 to 17:00, Monday to Friday: nine runs per working day. Every 15 minutes during business hours */15 9-17 * * 1-5 Runs every 15 minutes between 09:00 and 17:45 on weekdays. Every weekend 0 10 * * 6,0 Runs at 10:00 on Saturday and Sunday. Every Monday 0 9 * * 1 Runs at 09:00 every Monday, for example a weekly report. Every Friday at 5 PM 0 17 * * 5 Runs at 17:00 every Friday. Every Sunday 0 0 * * 0 Runs at midnight between Saturday and Sunday. Same as the @weekly macro. Every week (Monday) 0 0 * * 1 Runs once a week at 00:00 on Monday, the start of the ISO week. Use 0 0 * * 0 or @weekly to run on Sunday instead. Monthly and yearly
First day of every month
0 0 1 * * Runs at 00:00 on the 1st of every month. Same as the @monthly macro. Twice a month 0 0 1,15 * * Runs at 00:00 on the 1st and 15th of every month, for example payroll or billing. 15th of every month 0 0 15 * * Runs at 00:00 on the 15th day of each month. Last day of every month 0 0 28-31 * * Standard cron has no "last day" symbol, so the job runs on days 28–31 and a shell test lets it continue only when tomorrow is the 1st. First Monday of every month 0 9 1-7 * * The job runs at 09:00 on days 1–7, and a shell test keeps only the day that is a Monday. Every quarter 0 0 1 1,4,7,10 * Runs at 00:00 on the first day of January, April, July and October. Every 6 months 0 0 1 1,7 * Runs at 00:00 on January 1 and July 1. Every year 0 0 1 1 * Runs once a year at 00:00 on January 1. Same as @yearly and @annually.