Skip to content
Unix cron100% Client-Side

Cron Expression for Hourly Between 9 AM and 5 PM

0 9-17 * * *Every hour, between 09:00 AM and 05:00 PM

The Unix cron expression "0 9-17 * * *" runs a task hourly between 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*

Every hour, between 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

Office-hours hourly: the on-while-staffed schedule

0 9-17 * * * fires at the top of every hour from 9 AM through 5 PM inclusive — nine fires a day, silence all night. Its residents are jobs whose outputs only matter while people can read them: report and dashboard refreshes for office screens, email digest batches timed to working hours, development environments syncing test data, and internal tools whose upstreams (office networks, VPN'd databases, SSO) are themselves only meaningfully available during the day. The cadence keeps every consumer within an hour of fresh while spending a third of the compute an around-the-clock hourly schedule would.

The overnight gap defines the engineering again: nine hours of accumulated change lands on the 09:00 fire at once, so the job needs watermark-based processing (what changed since my last successful run, not what changed in the last hour) and a freshness stamp downstream consumers can trust. The alternative — letting the 09:00 fire fail on an oversized backlog — produces the worst kind of Monday: the report silently missing because the Sunday-night volume broke the loader. Bound the backlog, process it idempotently, and alert if the gap exceeded the expected window.

Boundary and calendar precision: 9-17, weekends, and zones

The range 9-17 is inclusive of both endpoints: fires at 09:00, 10:00, …, 16:00, and 17:00 — nine fires, with 17:00 the last of the day, not the first excluded one. Teams writing 'nine to five is eight hours' and then 9-17 get nine fires and occasionally a 5 PM batch they did not want; 9-16 is the eight-hour version. The day-of-week field remains *, so Saturday and Sunday run the same nine fires — restrict to workdays with 0 9-17 * * 1-5 if the office calendar applies, and remember cron still has no holiday concept: the guard belongs inside the job.

Whose 9 to 5 is the standing question for any business-hours schedule: 0 9-17 on a UTC server is 4:30 AM–12:30 PM in India and 5 AM–1 PM in New York on standard time, and DST moves the second one twice a year. Zone-pinning options are the usual set — CRON_TZ in cronie, timeZone in Kubernetes 1.27+, zone in Quartz, per-zone schedules multiplied out — with no single-line DST-proof form. The simulator above evaluates the expression in any zone you select, which is the fastest way to confirm whose office hours you actually scheduled.

Frequently asked questions

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

"0 9-17 * * *" is a Unix cron expression that means: Every hour, between 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.

How do I test "0 9-17 * * *" on a Linux server?

Add it with crontab -e, save, and watch the log: /var/log/syslog on Debian/Ubuntu or /var/log/cron on RHEL-family systems shows every firing. For a dry run without touching your crontab, use the simulator at the top of this page — it computes the next runs locally in your browser.

Does 9-17 fire at 5 PM?

Yes — cron ranges include both ends, so 0 9-17 * * * fires at 17:00 exactly, making it the ninth and final fire of the day. The eight-hour version that stops before 5 PM is 0 9-16 * * *, whose last fire is 16:00. This fence-post detail is the difference between a schedule that ends with the workday and one that fires a full batch at closing time — frequently the exact opposite of the intent.

How do I make this run only on weekdays?

Add the day-of-week range: 0 9-17 * * 1-5. Cron counts 1 = Monday through 5 = Friday (0 and 7 are Sunday), so the five-day restriction is 1-5 and the weekend goes silent. For holidays, cron alone cannot help — have the job check a holiday calendar on wake and exit early, keeping the crontab declarative and the exception policy versioned in code where it can be reviewed.

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

0 9-17 * * * is the Unix cron way to say “Every hour, between 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.