The Power of Server-Side Automation
In backend development and system administration, automated tasks are essential. We use cron jobs to automate database backups, schedule marketing emails, clean temp files, and scrape data.
A cron expression is a compact string of five or six fields that tells the server exactly when to run a command. While powerful, the syntax is notoriously difficult to write by hand without tools.
The 5 Fields of a Cron Expression
A standard cron string is structured with five distinct fields separated by spaces:
| Field Slot | Purpose | Allowed Values |
|---|---|---|
| Minute | Controls the minute of the hour | 0 - 59 |
| Hour | Controls the hour of the day | 0 - 23 |
| Day of Month | Controls the numerical calendar day | 1 - 31 |
| Month | Controls the month of the year | 1 - 12 (or JAN-DEC) |
| Day of Week | Controls the day of the week | 0 - 6 (or SUN-SAT) |
Note: Asterisk character (*) acts as a wildcard, meaning 'every interval'. For example, '0 0 * * *' schedules a script to run daily at midnight.
Try the Live Cron Expressions Explained
Recommended Tools You Might Like
Regex Tester & Explainer
Compile and test regular expressions in real-time. Highlights matched strings, extracts capture groups, and explains flag modifiers.
Base64 Encoder & Decoder
Encode text to Base64 and decode Base64 strings instantly in your browser. Free Base64 encoder with file support and copy to clipboard.
Color Picker & Converter
Convert colors between HEX, RGB, HSL, HSV, and CMYK instantly. Free online color picker with palette builder, shade generator, and complementary color finder.
JSON to TypeScript
Convert JSON data into clean, structured TypeScript interfaces or type aliases instantly. Supports nested objects and optional keys.
