icCron
icCronv1.0
Overview
  • Introduction
  • Quick Start
  • Installation
Guides
  • Multi-Language Integration
  • Authentication & Security
  • Cron Expression Syntax
API Reference
  • REST API Reference
  • Outcall Consensus Rules
Errors
  • Errors & Troubleshooting
FAQ
  • Frequently Asked Questions
Back to Dashboard
  1. icCron
  2. Guides
  3. Cron Expression Syntax
GitHub

Cron Expression Syntax

5-field cron expression syntax, step values, wildcards, and O(1) bitmask compilation.

Cron Expression Syntax

icCron supports standard 5-field UNIX cron syntax:

┌───────────── minute (0 - 59)
 │ ┌───────────── hour (0 - 23)
 │ │ ┌───────────── day of the month (1 - 31)
 │ │ │ ┌───────────── month (1 - 12)
 │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
 │ │ │ │ │
 * * * * *

Common Schedules

ExpressionMeaningTypical Use Case
* * * * *Every minuteReal-time monitoring & pinging
*/5 * * * *Every 5 minutesCache warm-ups & feed polling
*/15 * * * *Every 15 minutesInventory & order status syncs
0 * * * *Every hour at minute 0Database snapshots & Vercel bypass
0 2 * * *Daily at 02:00 UTCNightly analytical rollups
0 0 * * 1Every Monday at 00:00 UTCWeekly billing summaries
0 0 1 * *First day of every monthMonthly subscription renewals
0 8,12,18 * * *Daily at 08:00, 12:00, 18:00 UTCMulti-batch notification emails
0 0 * * 1-5Every weekday at midnight UTCFinancial settlement runs

O(1) Bitmask Compilation

Unlike naive schedulers that run regular expressions or iterate minute-by-minute across the entire calendar, icCron compiles every cron string into 5 compact integer bitmasks upon job creation:

  • minutes: u64 (bits 0–59)
  • hours: u32 (bits 0–23)
  • days: u32 (bits 1–31)
  • months: u16 (bits 1–12)
  • weekdays: u8 (bits 0–6)

When the canister timer wakes up, next-run calculations are performed using constant-time bitwise shifts and bit tests.

PreviousAuthentication & SecurityNextREST API Reference
Edit on GitHubMainnet Canister: w2fxo-5qaaa-aaaan-q6zxq-cai

On this page

Common SchedulesO(1) Bitmask Compilation

Search Documentation

Quickly find developer documentation, API endpoints, guides, and tutorials.