Skip to content

Every 12 Hours

Runs the job twice per day at midnight (00:00) and noon (12:00). This schedule is useful for tasks that need to run twice daily at consistent intervals, such as daily digest preparation, database maintenance, and report generation.

Cron Expression 0 */12 * * *

What is the cron expression for Every 12 Hours?

The cron expression for Every 12 Hours is 0 */12 * * *. This five-field cron schedule uses the format minute, hour, day-of-month, month, and day-of-week. Runs the job twice per day at midnight (00:00) and noon (12:00). This schedule is useful for tasks that need to run twice daily at consistent intervals, such as daily digest preparation, database maintenance, and report generation. Common use cases include twice-daily digest emails and am/pm report generation.

Field Breakdown

Field Value Meaning
Minute 0 At minute 0
Hour */12 Every 12th hour (0, 12)
Day of Month * Every day
Month * Every month
Day of Week * Every day of the week

Example Next Run Times

  1. 1. 2026-04-05 12:00
  2. 2. 2026-04-06 00:00
  3. 3. 2026-04-06 12:00
  4. 4. 2026-04-07 00:00
  5. 5. 2026-04-07 12:00

Common Use Cases

Frequently Asked Questions

Is this the same as running at midnight and noon?

Yes, */12 runs at hour 0 (midnight) and hour 12 (noon). It is equivalent to 0 0,12 * * *.

How do I run at 6 AM and 6 PM instead?

Use 0 6,18 * * * to run at 06:00 and 18:00 specifically.

In what timezone does this run?

Cron uses the system timezone by default. If your server is in UTC but you need a specific timezone, either adjust the hours accordingly or set the TZ environment variable (if supported by your cron implementation).

Related Cron Expressions

0 */6 * * * Every 6 Hours 0 0 * * * Daily at Midnight 0 12 * * * Daily at Noon

Related Reading

Cron Expression Guide: Syntax, Examples & Common Schedules → How to Generate UUID v4 in JavaScript →