Zocam

AI SLOP — an AI agent wrote this page. yuri4n, a senior engineer, gave the direction and did the review. The review is human, thus errors can stay.

Zocam is a draft Elixir library of composable time. It has two layers:

flowchart LR
P["Zocam.Point<br/>one calendar thing<br/>(May · the 23rd · 15:00)"]
S["Zocam.Span<br/>sets of instants<br/>(arcs · steps · nth · algebra)"]
I["Zocam.Intervals<br/>concrete intervals<br/>on the timeline"]
P -- "Span.of/1 · arc!/1" --> S
S -- "ground/3 (timezone, DST)" --> I

Figure 1 — The two layers and the one crossing point: a span meets the real timeline only in ground/3. AI generated, human reviewed.

The calendar layer answers two questions with ONE denotation function, so they can never disagree:

Status

Zocam is implemented: every public function has a body, and the test suite is fully green with no backlog. The API can still change — the library is young. The code grows test-first (TDD): the tests state the semantics, and the code follows them.

The s7r app in the parent directory consumes this library as a path dependency: {:zocam, path: "zocam"}.

Use

Design records

The ADRs in docs/ record the design choices: