Loading...
Loading...
Build, test, and understand cron schedules with live preview and platform snippets
A cron expression has 5 fields separated by spaces. A job runs when ALL fields match the current time.
0 9 * * 1-5 → "At 9:00 AM on weekdays"*Wildcard0 * * * * - Every hour,List0 9,17 * * * - 9 AM & 5 PM-Range0 0 * * 1-5 - Weekdays/Step*/5 * * * * - Every 5 min0 or 7 = Sunday (both work)
1-5 = Mon-Fri (weekdays) • 0,6 = Weekends
0,30 9-17 * * 1-5At :00 and :30, 9AM-5PM, weekdays*/15 8-18 * * *Every 15 min during 8AM-6PM0 9 1,15 * *9 AM on 1st and 15th of month0 0 * * 1#1First Monday of month (Quartz)Try the visual generator or test expressions in the playground.
A cron expression is a string of five (or six) fields separated by spaces that defines a schedule for recurring tasks. The standard five fields represent minute, hour, day of month, month, and day of week. Cron is used by Unix-based systems, CI/CD platforms, and cloud services to automate scheduled jobs.
The asterisk (*) is a wildcard that matches every possible value for that field. For example, an asterisk in the hour field means the job runs every hour. You can combine it with a slash for step values, like */5 in the minute field to run every 5 minutes.
Use the expression 0 0 * * *, which sets minute to 0, hour to 0, and uses wildcards for day, month, and day of week. This runs the job at 12:00 AM server time every day.
Standard (Unix) cron uses five fields: minute, hour, day of month, month, and day of week. Quartz cron adds a seconds field at the beginning and a year field at the end, giving it seven fields total. Quartz also supports special characters like L (last), W (weekday), and # (nth occurrence) that standard cron does not.
Yes. GitHub Actions uses standard five-field cron syntax inside the schedule trigger. Kubernetes CronJobs also use standard cron syntax in the spec.schedule field. Both run in UTC by default, so make sure to convert your local time accordingly.