Cron Syntax Guide
LiteLambda uses the standard 5-field UNIX cron syntax to determine when your Python script should run.
The 5 Fields
A cron expression consists of five space-separated fields representing different time units.
| Field Position | Meaning | Allowed Values |
|---|---|---|
| 1st | Minute | 0 - 59 |
| 2nd | Hour | 0 - 23 |
| 3rd | Day of Month | 1 - 31 |
| 4th | Month | 1 - 12 |
| 5th | Day of Week | 0 - 6 (0 = Sunday) |
Timezone
All cron schedules in LiteLambda are evaluated in UTC. Keep this in mind when scheduling jobs intended to run during local business hours.
Special Characters
*(Asterisk): Matches any value. E.g.,*in the minute field means "every minute".,(Comma): Value list separator. E.g.,1,15,30in the minute field means minutes 1, 15, and 30.-(Hyphen): Range of values. E.g.,1-5in the day-of-week field means Monday through Friday./(Slash): Step values. E.g.,*/10in the minute field means "every 10 minutes".
Common Examples
* * * * * # Every minute
*/5 * * * * # Every 5 minutes
0 * * * * # Every hour, on the hour
0 9 * * * # Every day at 9:00 AM UTC
0 9 * * 1-5 # Every weekday (Mon-Fri) at 9:00 AM UTC
0 0 1 * * # Midnight on the 1st day of every month
Tip: Use our Free Cron Expression Tester tool to validate your syntax and see the next 10 calculated run dates in plain English.