← All package workshops
Scheduling / INTERACTIVE WORKSHOP

Explore anchored dates and deadlines

Cadence v1.0.0

Preview anchor-derived dates or request an inclusive bounded window. Inspect strict cutoffs at a selected clock and see that host skip flags never move the anchor.

01 / CONFIGURE

Choose a scenario. Change the inputs or build a sequence of commands.

02 / RUN

Execute the installed package against a new fictional example.

03 / INSPECT

Follow the result, actual calls, generated output and integration code.

THE WORKBENCH

Make it your example.

Your server-side changes are temporary. External-service examples use local response fixtures. Start with sample data.

Execution result

Waiting for your first run
No execution yetEdit inputs ↑

Start with a preset, or change the input and run it.

The behavior is the example.

Your result will show the values, decisions and generated output from the actual package.

EXPLORE THE PACKAGE

What you can exercise here.

INTERACTIVE

Calendar and elapsed-time contracts

All units, original anchors, month ends/leap years, DST, inclusive windows, nextOnOrAfter and strict cutoff boundaries.

INTERACTIVE

Resource-limit failure

A window that exceeds the selected limit returns a package failure rather than partial dates.

HOST INTEGRATION

Scheduling workflows

Persisted anchors, holidays, jobs, notifications, capacity and billing remain host responsibilities.

UNDERSTAND THE BEHAVIOR

Every occurrence derives from the original anchor.

Explore recurrence, inclusive windows and strict elapsed-hour deadlines. Change the timezone, resume point and display skips while retaining the original schedule.

01

Short months do not cause permanent drift

Schedule::at derives each occurrence from the anchor. A January 31 schedule can clamp February and return to March 31. nextOnOrAfter resumes from a date without replacing that anchor.

02

A window is complete or rejected

Window mode calls between with inclusive endpoints and the selected count as a resource limit. If the complete window contains too many occurrences, the package refuses it instead of silently returning a truncated schedule.

03

Cutoffs use elapsed time and strict comparison

Cutoff::at subtracts actual hours, which can cross a daylight-saving offset change. The response checks one second before, exactly at, and one second after the cutoff. Exact deadline is closed.

04

Skipping is a host display decision

skip_indices hides selected returned positions from host_visible_occurrences. The complete occurrences remain present, and future package dates still derive from the same anchor. The workshop does not schedule jobs or persist cancellations.

GO FURTHER

Try the boundary cases.

  1. Watch month-end and leap-day recovery

    Run the default monthly schedule, then Leap-day recovery. Expected: January 31 clamps to February 29 in 2028 and returns to March 31; yearly February 29 clamps in non-leap years and recovers in the next leap year. Increase count to inspect the return.

  2. Compare DST with a fixed-offset zone

    Run DST cutoff and inspect occurrence offsets, cutoff and elapsed_seconds. Expected: a 24-hour cutoff is 86,400 seconds even across a local-clock change. Repeat with America/Phoenix and compare wall-clock times.

  3. Prove inclusive and bounded windows

    Run Inclusive same-instant window, then Refuse truncation. Expected: an occurrence exactly on both endpoints is included once; an insufficient limit returns a rejection and no partial occurrence list. Increase count to admit the complete window.

  4. Resume and skip without drifting

    Run Resume the original schedule, then Skip a displayed delivery. Expected: the resume point selects a future anchor-derived occurrence, and hiding one displayed position changes only host_visible_occurrences. Compare the remaining complete dates before and after the skip.

COMPOSE THE RESPONSIBILITIES

Useful alone.
Better when the boundaries fit.

Cadence calculates dates and deadlines. Flow or Workflow can use those dates in domain decisions; queues, job ownership, delivery retries and cancellation records remain application responsibilities.

Flow Workflow Read every API and recipe