That Cron Expression Runs at the Wrong Time
By toolbelt maintainers ·
Updated
You wrote 0 0 * * 1 and expected Mondays. Here is why day-of-week and day-of-month interact badly.
What is this tool?
Cron is five fields: minute, hour, day of month, month, day of week. The fifth field is where most bugs live.
How it works
I parse the expression and translate it to English, then compute the next five run times from now so you can confirm the schedule you actually wrote.
Example
0 0 * * 1 Translation: At 00:00, only on Monday. Next runs: Mon 02/12 00:00, Mon 09/12 00:00, Mon 16/12 00:00
When to use it
Before deploying any scheduled job. Especially anything that touches billing, notifications or cleanup, where a bad schedule is expensive.
Optimization Tips
Watch the timezone. Almost every scheduler uses UTC unless configured otherwise, and that is the difference between a 9am reminder and a 4am one. Also avoid */5 in the minute field if you meant every five minutes relative to the hour — it does mean that, but people misread it.
Frequently Asked Questions
What does day-of-week 0 mean?
Why does my job skip a month?
Can I run every 90 minutes?
Which crontab format is this?
Related tools
- UUID GeneratorGenerate cryptographically secure Version 4 (v4) UUIDs. Create batches of up to 100 unique identifiers at once, perfect for database primary keys or test data.
- Regex TesterTest regular expressions in real-time. See highlighted matches, named capture groups, exact character indexes, and test replacement strings with JavaScript flavors.
- Timestamp ConverterConvert Unix timestamps to human-readable dates and vice versa. Includes a live clock and automatically handles seconds or milliseconds for easy debugging.
- Timestamp BatchConvert a whole list of Unix timestamps or dates at once. The unit is detected per line, so mixed seconds and milliseconds are handled together.