Examples Tour

Start With The Right Boundary Problem

These example pages are organized as a guided tour. Start with the operational-day primitive. Then branch into DST failure modes, shifting per-date boundaries, or specialized scenarios.

Critical Cases

DST Critical Cases

Go here when you need to reason about spring-forward gaps, fall-back ambiguity, and elapsed-versus-wall-clock duration drift.

Open DST Critical Cases

Start Here If...

You only need helper-level examples

Use the API snippets page.

API Snippets

You need duration semantics in isolation

Use the duration scenarios page.

Duration Scenarios

Suggested Tour Order

  1. Operational Day Demo: learn the main boundary-window primitive.
  2. DST Critical Cases: understand the high-risk clock-change failures.
  3. Shifting Day Demo: see a boundary that changes by date.
  4. Duration Scenarios: isolate elapsed-versus-wall-clock end semantics.
  5. API Snippets: review the smaller helper entry points.
  6. Hijri Maghrib Boundary POC: explore a dataset-backed, non-midnight calendar rule.