Skip to content
Salesforce (System.schedule)100% Client-Side

Cron Expression for Every 6 Hours (Salesforce)

0 0 0/6 * * ?On the hour, every 6 hours

The Salesforce cron expression "0 0 0/6 * * ?" runs a task every 6 hours (salesforce). In Apex, schedule it with System.schedule('MyJob', '0 0 0/6 * * ?', new MySchedulable()). Preview the next run times in your timezone, read the plain-English translation, and copy ready-to-paste snippets for Apex System.schedule, crontab, Node.js, GitHub Actions, and AWS EventBridge.

Live playground

  • Sec0
  • Min0
  • Hour0/6
  • DOM*
  • Month*
  • DOW?
  • Year—

On the hour, every 6 hours

Salesforce (System.schedule) · 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.

Scheduling Apex? The Salesforce cron expression builder has the full System.schedule field reference, special-character guide, and copy-paste System.schedule snippets.

Field breakdown

How each field of 0 0 0/6 * * ? is interpreted in the Salesforce (System.schedule) format.

Field breakdown of 0 0 0/6 * * ?
FieldValueAllowedStatus
Seconds00-59Valid
Minute00-59Valid
Hour0/60-23Valid
Day of Month*1-31, L (last day), W (nearest weekday)Valid
Month*1-12 or JAN-DECValid
Day of Week?1-7 or SUN-SAT (1 = SUN)Valid
Year1970-2099 (optional)Valid

Use “0 0 0/6 * * ?” in real code

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

public class MySchedulable implements Schedulable {
    public void execute(SchedulableContext ctx) {
        // Your scheduled logic — often Database.executeBatch(...).
    }
}

// Fires on the schedule below, in the scheduling user's timezone:
System.schedule('My Job', '0 0 0/6 * * ?', new MySchedulable());

Run via Anonymous Apex, a test, or a post-deploy script. The expression is evaluated in the timezone of the user who schedules the job — watch that when hours look off by a few.

Frequently asked questions

What does the cron expression "0 0 0/6 * * ?" mean?

"0 0 0/6 * * ?" is a Salesforce (System.schedule) expression that means: On the hour, every 6 hours. It contains 7 fields — Seconds (0), Minute (0), Hour (0/6), Day of Month (*), Month (*), Day of Week (?), Year () — and works in any scheduler that accepts the Salesforce (System.schedule) format.

How does "0 0 0/6 * * ?" behave in UTC versus local time?

System.schedule evaluates the cron expression in the timezone of the user who schedules the job — not UTC and not necessarily the org default. Schedule as the right user (or simulate with that user's timezone above): sandbox and production users with different timezones produce different fire times, and daylight saving shifts move runs by an hour.

Is "0 0 0/6 * * ?" valid outside Salesforce (System.schedule)?

Not directly. Standard Unix cron expects 5 fields without '?', Quartz expects a leading seconds field, AWS EventBridge appends a year and requires '?' in one of the two day fields, and Salesforce System.schedule needs a leading seconds field with 1-based weekdays and an optional trailing year. The conversion snippets below show the equivalent expression for each platform.

About the “0 0 0/6 * * ?” schedule

0 0 0/6 * * ? is the Salesforce (System.schedule) way to say “On the hour, every 6 hours”. 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.