Cron schedule from a plain description
Prompt that turns a schedule in everyday words into a checked cron expression with an explanation and the next runs. Paste it into an AI tool of your choice, which then writes the cron expression.
- Topic
- Understanding code
- Type
- Prompt
- Level
- Beginner
- Time
- about 4 min
Results depend on the tool, the model and what you enter.
Result preview
Example: written by our editors, not real AI output.
Sentence: every weekday (Mon–Fri) at 7:30 server time; public holidays included. 30 7 * * 1-5 minute 30 · hour 7 · every day of month · every month · Monday to Friday Next runs (Europe/London): Mon 7:30 · Tue 7:30 · Wed 7:30 · Thu 7:30 · Fri 7:30 Traps: if the server runs on UTC, the job starts at 8:30 local time in summer. Public holidays need a check inside the job.
Fill in
What you type stays in this browser window. We store and send nothing.
- weekdays at 7:30
- every 15 minutes between 8:00 and 18:00
- first Monday of every month at 6:00
- last day of every month at 23:00
- every Sunday at 2:00 at night
- UTC
- Europe/London
- America/New_York
- Asia/Tokyo
- not sure
- Linux crontab
- Kubernetes CronJob
- GitHub Actions workflow
- a cloud provider's scheduler
- a scheduler library in code
Your prompt
You have edited the prompt. Changes in the fields above no longer overwrite it.
This is an instruction for an AI, not the result itself.
Where this prompt works
These AI tools are a good fit for this prompt:
How to use it
- Fill in the fields or tap a suggestion. Leave out names, addresses and other personal data.
- Copy the finished prompt into an AI tool of your choice.
- Check the five run times with a cron checker or in a test environment before the job runs in production.
Why does this work?
The unambiguous sentence exposes misunderstandings before they end up in the expression. The list of next runs shows at once whether the expression really does what was meant.
Tips
- Systems differ on the seconds field, weekday numbering and time zone handling, so always name the system.