Cron expression explainer / Every 2 hours
Cron expression for every 2 hours: 0 */2 * * *
Runs at 00:00, 02:00, 04:00 and so on, 12 times a day.
Every 2 hours, on the hour.
- Mon, Nov 30, 2026, 06:00
- Mon, Nov 30, 2026, 08:00
- Mon, Nov 30, 2026, 10:00
- Mon, Nov 30, 2026, 12:00
- Mon, Nov 30, 2026, 14:00
- Mon, Nov 30, 2026, 16:00
- Mon, Nov 30, 2026, 18:00
- Mon, Nov 30, 2026, 20:00
- Mon, Nov 30, 2026, 22:00
- Tue, Dec 1, 2026, 00:00
Field by field
- 0minute
- */2hour
- *day of month: any value
- *month: any value
- *day of week: any value
Variations
- 30 */2 * * *Every 2 hours at half past (00:30, 02:30 and so on)
- 0 */2 * * 1-5Every 2 hours on weekdays only
- 0 1-23/2 * * *Every 2 hours starting at 01:00 instead of midnight
- 0 0 */2 * * *Spring @Scheduled (seconds first): every 2 hours
- 0 0 0/2 * * ?Quartz (seconds first, ? for day of week): every 2 hours
- cron(0 0/2 * * ? *)AWS EventBridge (6 fields, with year): every 2 hours
The EventBridge field rules are in AWS EventBridge cron expressions.
Questions
What is the cron expression for every 2 hours?
0 */2 * * *. Every 2 hours, on the hour.
Does 0 */2 * * * skip a run when the clocks change?
No. With the timezone set to America/New_York, 02:00 does not exist on 8 March 2026, so that run goes out at 03:00 instead and the day still has 12 runs. On 1 November 2026 the repeated hour is 01:00, which is not one of its hours, so nothing changes.
Is 0 */2 * * * the same as 0 0,2,4,6,8,10,12,14,16,18,20,22 * * *?
Yes. The step counts from hour 0, so */2 in the hour field matches hours 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22. Both lines run at minute 0 of those hours, 12 times a day.
What if a run of 0 */2 * * * fails?
By default RunLater retries a failed request (non-2xx or timeout) 3 times, 1, 3 and 7 minutes after the failure, and you can set up to 10. All three are done long before the next run, at least 2 hours later. Every attempt is logged with its status code and response body.
Call a URL every 2 hours without running a server
Paste 0 */2 * * * into a RunLater scheduled request with your URL, method, headers and body. It runs in the timezone you choose, retries failures and logs every response.
Related guide: Cron expression guide.
Next steps: set up a cron job for a URL, pick the right timezone and see how failed runs are retried.