Skip to content

Guides

These guides are organized by task, not by namespace. Each one gathers the runnable patterns for a task into a single page, then links to the reference page of every function mentioned for its full signature. The agent skills teach the same patterns to coding agents.

GroupWhat it covers
ConceptsPlain vs zoned, DST disambiguation
Core Date OperationsGetting the current time, arithmetic, comparison, durations, parsing, formatting, relative time, validation, calendar systems, business calendars, operating hours, nanosecond precision, spans
Zoned Date OperationsTimezone-aware arithmetic, boundaries, DST control, zone-aware buckets, offset-preserving instants
ConversionBetween plain/zoned/unix/UTC and calendar systems, and foreign epochs (NTP, FILETIME, Excel, PostgreSQL)
IntervalsRange math — containment, overlap, set operations, splitting
IntegrationCache keys, routers, tables, lint config
IndustriesThe industry layers on top of the core — transport legs and dwell, cut-offs, multi-leg scheduling, punctuality and timestamp classes, free time and demurrage, billing deadlines, bill of lading dates and multimodal ETAs, EDI timestamps — with real-world scenarios

If you’re new to the library, read these three first — in this order:

  1. Plain vs Zoned — the two families of types and why they never mix.
  2. DST Disambiguation — why wall-clock time breaks twice a year and how GMT controls it.
  3. Zoned Operations — scheduling across timezones, the task that needs both.

After that, jump to whichever group matches the task at hand.