Liking cljdoc? Tell your friends :D

hive-ttracking.time.core

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.
raw docstring

add-daysclj/s

d plus n days, revalidated (range) -> :time/day-out-of-range.

`d` plus `n` days, revalidated (range) -> :time/day-out-of-range.
sourceraw docstring

attemptclj/s

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.
sourceraw docstring

completed-yearsclj/s

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.
sourceraw docstring

current-monthclj/s

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`.
sourceraw docstring

Dayclj/s

The Day schema, from schema.cljc.

The Day schema, from schema.cljc.
sourceraw docstring

day->instantclj/s

The instant a Day begins in a zone (atStartOfDay, DST-gap safe).

The instant a Day begins in a zone (atStartOfDay, DST-gap safe).
sourceraw docstring

days-betweenclj/s

Exact days from from to to; may be negative.

Exact days from `from` to `to`; may be negative.
sourceraw docstring

format-dayclj/s

Day -> "YYYY-MM-DD".

Day -> "YYYY-MM-DD".
sourceraw docstring

format-monthclj/s

Month -> "YYYY-MM".

Month -> "YYYY-MM".
sourceraw docstring

format-periodclj/s

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).
sourceraw docstring

format-timeclj/s

TimeOfDay -> "HH:MM" when the second is 0, else "HH:MM:SS".

TimeOfDay -> "HH:MM" when the second is 0, else "HH:MM:SS".
sourceraw docstring

instant->dayclj/s

The Day of instant in zone. The zone is the argument.

The Day of `instant` in `zone`. The zone is the argument.
sourceraw docstring

LeapPolicyclj/s

The closed leap-policy set, from schema.cljc.

The closed leap-policy set, from schema.cljc.
sourceraw docstring

Localclj/s

The wall-clock schema, from schema.cljc.

The wall-clock schema, from schema.cljc.
sourceraw docstring

local-time->instantclj/s

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.
sourceraw docstring

Monthclj/s

The Month schema, from schema.cljc.

The Month schema, from schema.cljc.
sourceraw docstring

parse-dayclj/s

"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.
sourceraw docstring

parse-monthclj/s

"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.
sourceraw docstring

parse-timeclj/s

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.
sourceraw docstring

Periodclj/s

The Period schema, from schema.cljc.

The Period schema, from schema.cljc.
sourceraw docstring

period->instant-intervalclj/s

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).
sourceraw docstring

period-contains-instant?clj/s

a <= t < b.

a <= t < b.
sourceraw docstring

previous-monthclj/s

The previous full month, from its first to its last day.

The previous full month, from its first to its last day.
sourceraw docstring

reasonclj/s

The :time/reason of a refusal of this library, or nil.

The :time/reason of a refusal of this library, or nil.
sourceraw docstring

Reasonclj/s

The closed refusal-reason vocabulary, from schema.cljc.

The closed refusal-reason vocabulary, from schema.cljc.
sourceraw docstring

reason?clj/s

True when r is in the closed reason vocabulary.

True when `r` is in the closed reason vocabulary.
sourceraw docstring

reasonsclj/s

The closed reason vocabulary.

The closed reason vocabulary.
sourceraw docstring

refusal?clj/s

True when e is a designed refusal of this library.

True when `e` is a designed refusal of this library.
sourceraw docstring

TimeOfDayclj/s

The TimeOfDay schema, from schema.cljc.

The TimeOfDay schema, from schema.cljc.
sourceraw docstring

todayclj/s

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).
sourceraw docstring

Zoneclj/s

The ZoneId schema, from schema.cljc.

The ZoneId schema, from schema.cljc.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close