⏱OpsTools

Cron Expression for Every 12 Hours

0 */12 * * *→Runs twice a day: midnight and noon
0
Minute
0–59
*/12
Hour
0–23
*
Day
1–31
*
Month
1–12
*
Weekday
0–7

Quick Examples

How It Works

Using 0 */12 * * *, the task executes at 00:00 and 12:00 every day — exactly twice a day. This is ideal for tasks that should run 'morning and evening' or that split a daily workload in half.

Common Use Cases

  • 1Sending morning and evening digest emails
  • 2Twice-daily security scan
  • 3Syncing a large dataset in two batches

Linux Crontab Example

0 */12 * * * /app/send-digest.sh

Add this line to your crontab with crontab -e

Need a custom schedule?

Build your own cron expression visually with our generator.

Open Generator →