Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By elixir-tempov0.1.0Apache-2.0In 1 marketplace
Turns a date, time or recurrence question into validated Tempo Elixir code and explains the result in plain language. Works with the ex_tempo Elixir library, so it requires an Elixir project with that dependency added.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
date-time, iso-8601, edtf, recurrence, time-intervals, scheduling
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.

Tempo is an Elixir library that models time the way humans actually use it — as bounded spans on a shared timeline rather than as scalar instants. Everything positioned is an interval — a year, a month, an afternoon, a meeting, an archaeological period, a recurring event — each a bounded interval at some resolution. Collections of them, like a free-busy calendar, are derivations over that one type rather than new types; the sole companion is Duration, an unpositioned width from which an interval is formed once it is given a start. Every operation (iteration, comparison, set-theoretic combination) is defined uniformly.
This conceptual shift — time as interval, not instant — removes a surprising number of real-world bugs (off-by-one day errors, ambiguous "end of day", last day of month, last day of year, DST edge cases, "what date does this year mean?") while unlocking queries that are awkward or impossible in other libraries.
One type. No more Date for days, Time for hours, DateTime for both, NaiveDateTime for "I don't know what I have" — one %Tempo{} holds a value at any resolution, an interval, a recurrence, a set of them or a choice among them. Tempo.Interval, Tempo.IntervalSet and Tempo.RecurrenceSet are constructors of that one struct, not types of their own; the one distinct companion is Tempo.Duration, a length with no place on the time line. Conversion from Elixir's types is Tempo.from_elixir/2, and Elixir's structs and your own (through the Tempo.Intervallic protocol) are related and combined with Tempo's as they are.
Correctness by construction. Every value denotes half-open spans [from, to) on the time line, so adjacent spans join cleanly ([a, b) and [b, c) are [a, c)). An interval is read as it is written: one written to a date runs through that date (2026/2028 is three years), and one written to a time of day runs to that reading. "End of day" ambiguity, midnight off-by-ones and DST-hour confusion vanish at the type level.
Zones that never guess. A time a zone's clock skips, or an offset the zone no longer has, is an error that names the offsets until disambiguation: or offset: says what was meant, in the words JavaScript's Temporal uses; a time it shows twice is its first showing unless a shift or disambiguation: :later says otherwise. A day of the calendar counts as a day however long its clock runs: noon to noon across a spring change is P1D, or PT23H when hours are asked for.
Full support for the time standards that matter. ISO 8601 Parts 1 and 2, EDTF Levels 0–2, IXDTF. 100% of the unt-libraries/edtf-validate corpus passes. Long years (Y17E8), significant-digits notation, mask syntax, open-ended intervals, per-endpoint qualifications — all parsed and queryable.
First-class set algebra on time. Union, intersection, complement, difference, symmetric difference — plus the predicate set (disjoint?, overlaps?, within?, contains?, equal?) — all defined over any Tempo value. Cross-zone, cross-calendar, across resolutions.
Constraint reasoning, in a companion package. Tempo.Network models a web of partially-known intervals — reigns, strata, project tasks — and computes the tightest dates each one can take (the ChronoLog scheme), and Tempo.Schedule applies the same solver to project scheduling. Both live in the tempo_network package, which depends on this one.
Business days and territory-aware calendars. Tempo.weekend?/2, Tempo.workday?/2, Tempo.add_workdays/3, and Tempo.count_workdays/2 answer "how many workdays until the deadline?" with CLDR-correct weekends per territory (the US weekends Saturday/Sunday, Saudi Arabia Friday/Saturday) and correct on any calendar, and Tempo.roll_to_workday/3 moves a date that falls on a day off by a contract's business day convention.
Days that begin at sunset. Tempo.day_start/1 places a Hebrew or Islamic day from the sunset of the evening before to its own, on the clock of its calendar's place (Jerusalem, Mecca), through Calendrical; the calendar names its boundary and its place.
Yearly dates written in words, and counting. Tempo.DateRule.parse/2 reads a date as a holiday calendar writes it — 4th Thursday in November, easter -2, 15 Nisan, 01-26 and if saturday then next monday — into the Tempo recurrence it means, and Tempo.count/3 counts the days, hours or seconds an expression holds: Tempo.count(business_days, :day).
iCalendar import with metadata that travels. Tempo.ICal.parse/2 parses RFC 5545 .ics data and every event's metadata (summary, location, attendees, status, …) rides along through every downstream operation. Intersect your schedule with work hours, get back which meetings are in work hours.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub elixir-tempo/tempo --plugin tempoPlugins from other owners that cover similar ground