0 */4 * * * — what this cron expression means
The cron expression 0 */4 * * * runs every 4 hours on the hour. Here is the field-by-field breakdown and what it means in plain English.
What 0 */4 * * * means
It runs every 4 hours, on the hour: 00:00, 04:00, 08:00, 12:00, 16:00 and 20:00.
Field by field
minute=0, hour=*/4 (a step every 4 hours starting at 0), day/month/day-of-week all *.
Six runs a day, evenly spaced four hours apart.
When it runs next
Next run: the next matching time for 0 */4 * * *.
FAQ
What times does 0 */4 * * * run?
At 00:00, 04:00, 08:00, 12:00, 16:00 and 20:00 — six times a day.
Is */4 the same as every 4 hours?
Yes, with minute=0 it fires at the top of every fourth hour from midnight.