Skip to content
Unix cron100% Client-Side

Cron Expression for Twice Daily at 9 AM and 5 PM

0 9,17 * * *At 09:00 AM and 05:00 PM

The Unix cron expression "0 9,17 * * *" runs a task twice daily at 9 am and 5 pm. Preview the next run times in your timezone, read the plain-English translation, and copy ready-to-paste snippets for crontab, Node.js, GitHub Actions, and AWS EventBridge.

Live playground

  • Min0
  • Hour9,17
  • DOM*
  • Month*
  • DOW*

At 09:00 AM and 05:00 PM

Unix cron · evaluated in UTC

24-hour view

Hover a highlighted hour for precise timestamps. Showing the next 50 executions.

Upcoming runs

Timezone

Runs are simulated in the selected IANA timezone. Auto-detected from your browser on first load.

Field breakdown

How each field of 0 9,17 * * * is interpreted in the Unix cron format.

Field breakdown of 0 9,17 * * *
FieldValueAllowedStatus
Minute00-59Valid
Hour9,170-23Valid
Day of Month*1-31Valid
Month*1-12 or JAN-DECValid
Day of Week*0-7 or SUN-SAT (0 and 7 = SUN)Valid

Use “0 9,17 * * *” in real code

Copy-paste configurations for the most common schedulers, converted to each platform’s dialect where needed.

import cron from 'node-cron';

cron.schedule('0 9,17 * * *', () => {
  console.log('Running task...');
});

Running “0 9,17 * * *” in production

The hour list: one line, two fires, the business bookends

0 9,17 * * * fires at 9 AM and 5 PM every day, and the hour field's comma list is what makes one line carry both: 9,17 enumerates members exactly as the minute field's lists do, in any order, with duplicates collapsing harmlessly. The 9-and-5 pairing is the bookend pattern — the open and close of the business day — and its residents reflect that: morning digests that summarize yesterday paired with evening wrap-ups that summarize today; shift-handover snapshots; open-and-close syncs for systems whose state changes while the office is awake. Two fires, one job, one line to review.

The spacing is deliberately uneven and worth stating in numbers: nine hours between the morning and evening fires, sixteen hours overnight (17:00 to the next 09:00). That asymmetry is the point of bookends — the schedule hugs the workday — but it breaks any logic assuming 'twice daily means twelve hours apart.' For an even split use 0 6,18; for a business-anchored pair with different times (say 8:30 and 4:30), the list form extends trivially: 30 8,16 * * *. The expression stays one line either way; only the members change.

One line or two: when a list is the wrong tool

A cron line runs one command, so the list-versus-two-lines decision reduces to whether the two fires share a job. 0 9,17 running /usr/local/bin/sync.sh is idiomatic; the same command twice daily is one list. But 'morning report' and 'evening closeout' are usually different scripts — and forcing them into one line means the command itself must branch on the hour (date +%H inside a wrapper script), which trades crontab clarity for script opacity. Two lines — 0 9 * * * script-morning.sh and 0 17 * * * script-evening.sh — keep each schedule one-command and individually disableable, which is worth more than the saved line.

Platform notes are brief because lists are universal: EventBridge takes cron(0 9,17 * * ? *) in its six-field form, Quartz prepends the seconds (0 0 9,17 * * ?), Celery writes crontab(hour='9,17'), and systemd's OnCalendar=*-*-* 09,17:00:00 expresses the same members. The timezone rules inherit from any fixed-clock-time schedule: 9 and 17 mean the daemon's local zone, so multi-zone products either multiply lines per zone or move the per-recipient decision into the application layer. The simulator above lists both daily fires and the two gaps between them — the numbers to check against whatever consumes the job's output.

Frequently asked questions

What does the cron expression "0 9,17 * * *" mean?

"0 9,17 * * *" is a Unix cron expression that means: At 09:00 AM and 05:00 PM. It contains 5 fields — Minute (0), Hour (9,17), Day of Month (*), Month (*), Day of Week (*) — and works in any scheduler that accepts the Unix cron format.

How does "0 9,17 * * *" behave in UTC versus local time?

The classic cron daemon interprets every field in the machine's local timezone (from /etc/timezone or the TZ environment variable). If the server runs in UTC the schedule fires in UTC; otherwise shift the hours accordingly. Modern cronie also supports CRON_TZ to pin a single job to UTC.

What happens if the machine is offline when "0 9,17 * * *" is due?

Classic cron does not catch up missed runs: if the server is down at the fire time, that execution is skipped until the next match. Guard the command with an idempotency check, or use anacron or a scheduler with missed-run handling when catch-up behavior matters.

What is the gap between the two runs of 0 9,17?

Nine hours during the day (9 AM to 5 PM) and sixteen hours overnight (5 PM to the next 9 AM) — a deliberate business-hours asymmetry, not an even 12-hour split. If the requirement is equal spacing, use 0 6,18 (12 hours apart around the clock) or a three-fire list for 8-hour spacing. The bookend pattern accepts the long overnight gap because nothing the job serves changes while the office is closed.

Can I run two different commands at 9 and 5 in one cron line?

Not cleanly — one cron line invokes one command. The idiomatic forms are two lines (0 9 * * * morning.sh and 0 17 * * * evening.sh) or one line with a wrapper that branches on the hour. Two lines are preferable: each job stays independently editable, disableable, and visible in logs, while the wrapper-branching approach hides two schedules inside one script and makes both harder to audit.

About the “0 9,17 * * *” schedule

0 9,17 * * * is the Unix cron way to say “At 09:00 AM and 05:00 PM”. The simulator above evaluates it entirely in your browser — the timeline, the next-run table, and the timezone switcher all run client-side, so you can paste production schedules without them ever leaving your machine.

Every page in this directory follows the same structure: a plain-English translation, a per-field breakdown, platform-specific snippets, and a timezone-aware simulator. Move between the related intervals below to compare dialects, and validate one final time in the simulator with your own timezone before shipping.

Adjacent intervals and the same schedules expressed for other platforms.