The facade: the library's public API, one entry point.
This namespace re-exports the op table -- the GENERIC half (18 ops) that lives in this coordinate. Every op carries an m/=> contract (malli), so the shape of each argument and return is stated once, here, and a consumer (reitit, the calendario facade) can read it. The FUNERARIA half (br->dia, dia->br, competencia->br, competencia->extenso, instante->br, vencimento-em, vencido?, prazo, data-reajuste, fb-timestamp->dia) stays in calendario and is NOT here.
Which ops are in the facade: the 18 op-table ops, nothing else. Supporting API (->day, day?, epoch, days-in-month, add-months, ->zone, zone?, offset-ms, instant->local, day-start, the instant codec parse-instant/format-instant, the codec pads) is reached through its own namespace, not re-exported.
offset-ms is PUBLIC in zone.cljc but is NOT one of the 28 op-table ops: no op in the table needs it as a consumer entry point (period->instant-interval and day->instant go through day-start), so it stays OUT of the facade. The instant codec is the same case: parse-instant / format-instant have no op of their own in the table (they are used by day->instant / instant->*), so they stay in instant.cljc, OUT of the facade. A consumer that wants either imports hive-ttracking.time.zone / hive-ttracking.time.instant directly.
The value-object schemas of schema.cljc are re-exported below as a convenience, so a consumer can validate with one require.
The facade: the library's public API, one entry point. This namespace re-exports the op table -- the GENERIC half (18 ops) that lives in this coordinate. Every op carries an m/=> contract (malli), so the shape of each argument and return is stated once, here, and a consumer (reitit, the calendario facade) can read it. The FUNERARIA half (br->dia, dia->br, competencia->br, competencia->extenso, instante->br, vencimento-em, vencido?, prazo, data-reajuste, fb-timestamp->dia) stays in calendario and is NOT here. Which ops are in the facade: the 18 op-table ops, nothing else. Supporting API (->day, day?, epoch, days-in-month, add-months, ->zone, zone?, offset-ms, instant->local, day-start, the instant codec parse-instant/format-instant, the codec pads) is reached through its own namespace, not re-exported. offset-ms is PUBLIC in zone.cljc but is NOT one of the 28 op-table ops: no op in the table needs it as a consumer entry point (period->instant-interval and day->instant go through day-start), so it stays OUT of the facade. The instant codec is the same case: parse-instant / format-instant have no op of their own in the table (they are used by day->instant / instant->*), so they stay in instant.cljc, OUT of the facade. A consumer that wants either imports hive-ttracking.time.zone / hive-ttracking.time.instant directly. The value-object schemas of schema.cljc are re-exported below as a convenience, so a consumer can validate with one require.
d plus n days, revalidated (range) -> :time/day-out-of-range.
`d` plus `n` days, revalidated (range) -> :time/day-out-of-range.
Run (f & args): {:ok v}, or {:error reason :message msg} on a refusal.
Run (f & args): {:ok v}, or {:error reason :message msg} on a refusal.
Completed years of birth as of day, under leap-policy (REQUIRED). Refuses :time/age-before-birth, :time/leap-policy-missing, :time/leap-policy-unknown.
Completed years of birth as of day, under leap-policy (REQUIRED). Refuses :time/age-before-birth, :time/leap-policy-missing, :time/leap-policy-unknown.
The period from the first day of today's month up to today.
The period from the first day of `today`'s month up to `today`.
The instant a Day begins in a zone (atStartOfDay, DST-gap safe).
The instant a Day begins in a zone (atStartOfDay, DST-gap safe).
Exact days from from to to; may be negative.
Exact days from `from` to `to`; may be negative.
Period -> the object of two ISO Days, with the generic keys (:start :end).
Period -> the object of two ISO Days, with the generic keys (:start :end).
TimeOfDay -> "HH:MM" when the second is 0, else "HH:MM:SS".
TimeOfDay -> "HH:MM" when the second is 0, else "HH:MM:SS".
The Day of instant in zone. The zone is the argument.
The Day of `instant` in `zone`. The zone is the argument.
The closed leap-policy set, from schema.cljc.
The closed leap-policy set, from schema.cljc.
The wall-clock schema, from schema.cljc.
The wall-clock schema, from schema.cljc.
A local Day + TimeOfDay in a zone -> epoch ms. A gap -> :time/zone-gap; an overlap -> the earliest offset.
A local Day + TimeOfDay in a zone -> epoch ms. A gap -> :time/zone-gap; an overlap -> the earliest offset.
The Month schema, from schema.cljc.
The Month schema, from schema.cljc.
"YYYY-MM-DD" -> Day. Refuses :time/day-is-instant, :time/day-format, :time/day-impossible, :time/day-out-of-range.
"YYYY-MM-DD" -> Day. Refuses :time/day-is-instant, :time/day-format, :time/day-impossible, :time/day-out-of-range.
"YYYY-MM" -> Month. Refuses :time/month-is-instant, :time/month-impossible, :time/month-out-of-range.
"YYYY-MM" -> Month. Refuses :time/month-is-instant, :time/month-impossible, :time/month-out-of-range.
The legacy layouts 'H', 'H:M' and 'H:M:S' -> TimeOfDay. Refuses :time/time-format, :time/time-out-of-range.
The legacy layouts 'H', 'H:M' and 'H:M:S' -> TimeOfDay. Refuses :time/time-format, :time/time-out-of-range.
The Period schema, from schema.cljc.
The Period schema, from schema.cljc.
A Period as a HALF-OPEN interval of instants [start@00:00, (end+1)@00:00).
A Period as a HALF-OPEN interval of instants [start@00:00, (end+1)@00:00).
The previous full month, from its first to its last day.
The previous full month, from its first to its last day.
The :time/reason of a refusal of this library, or nil.
The :time/reason of a refusal of this library, or nil.
The closed refusal-reason vocabulary, from schema.cljc.
The closed refusal-reason vocabulary, from schema.cljc.
True when r is in the closed reason vocabulary.
True when `r` is in the closed reason vocabulary.
True when e is a designed refusal of this library.
True when `e` is a designed refusal of this library.
The TimeOfDay schema, from schema.cljc.
The TimeOfDay schema, from schema.cljc.
The Day of clock's current instant in zone (the ONE clock read + zone).
The Day of `clock`'s current instant in `zone` (the ONE clock read + zone).
The ZoneId schema, from schema.cljc.
The ZoneId schema, from schema.cljc.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |