Liking cljdoc? Tell your friends :D

tick.core


*clock*clj/s


*time-literals-printing*clj

If true, include the time-literals printer, which will affect the way java.time and js-joda objects are printed

If true, include the time-literals printer, which will affect the way java.time and js-joda objects are printed
raw docstring

+clj/s

(+)
(+ arg)
(+ arg & args)

Sum amounts of time

Sum amounts of time
raw docstring

-clj/s

(-)
(- arg)
(- arg & args)

Subtract amounts of time.

Subtract amounts of time.
raw docstring

<clj/s

(< _x)
(< x y)
(< x y & more)

<<clj/s

(<< t n-or-d)

<=clj/s

(<= _x)
(<= x y)
(<= x y & more)

=clj/s

(= _x)
(= x y)
(= x y & more)

>clj/s

(> _x)
(> x y)
(> x y & more)

>=clj/s

(>= _x)
(>= x y)
(>= x y & more)

>>clj/s

(>> t n-or-d)

agoclj/s

(ago dur)

APRILclj/s


atclj/s

(at d t)

atomclj/s

(atom)
(atom clk)

AUGUSTclj/s


beginningclj/s

(beginning v)

betweenclj/s

(between v1 v2)

clockclj/s

(clock)
(clock i)

clock?clj/s

(clock? v)

coincident?clj/s

(coincident? t event)

Does the span of time contain the given event? If the given event is itself a span, then t must wholly contain the beginning and end of the event.

Does the span of time contain the given event? If the given event
is itself a span, then t must wholly contain the beginning and end
of the event.
raw docstring

compare-and-set!clj/s

(compare-and-set! at oldval newval)

current-clockclj/s

(current-clock)

current-zoneclj/s

(current-zone)

Return the current zone, which can be overridden by the clock dynamic var

Return the current zone, which can be overridden by the *clock* dynamic var
raw docstring

dateclj/s

(date)
(date v)

date-timeclj/s

(date-time)
(date-time v)

date-time?clj/s

(date-time? v)

date?clj/s

(date? v)

day-of-monthclj/s

(day-of-month)
(day-of-month v)

day-of-weekclj/s

(day-of-week)
(day-of-week v)

day-of-week-in-monthclj/s

(day-of-week-in-month ordinal dow)
(day-of-week-in-month t ordinal dow)

day-of-week?clj/s

(day-of-week? v)

daysclj/s

(days v)

decclj/s

(dec t)

DECEMBERclj/s


divideclj/s

(divide t divisor)

durationclj/s

(duration x)

duration?clj/s

(duration? v)

endclj/s

(end v)

epochclj/s

(epoch)

FEBRUARYclj/s


field-mapclj/s


fieldsclj/s

(fields t)

first-day-of-monthclj/s

(first-day-of-month)
(first-day-of-month t)

first-day-of-next-monthclj/s

(first-day-of-next-month)
(first-day-of-next-month t)

first-day-of-next-yearclj/s

(first-day-of-next-year)
(first-day-of-next-year t)

first-day-of-yearclj/s

(first-day-of-year)
(first-day-of-year t)

first-in-monthclj/s

(first-in-month dow)
(first-in-month t dow)

formatclj/s

(format o)
(format fmt o)

Formats the given time entity as a string. Accepts something that can be converted to a DateTimeFormatter as a first argument. Given one argument uses the default format.

Formats the given time entity as a string.
Accepts something that can be converted to a `DateTimeFormatter` as a first
argument. Given one argument uses the default format.
raw docstring

formatterclj/s

(formatter fmt)
(formatter fmt locale)

Constructs a DateTimeFormatter out of either a

  • format string - "YYYY/mm/DD" "YYY HH:MM" etc. or
  • formatter name - :iso-instant :iso-local-date etc

and a Locale, which is optional.

Constructs a DateTimeFormatter out of either a

* format string - "YYYY/mm/DD" "YYY HH:MM" etc.
or
* formatter name - :iso-instant :iso-local-date etc

and a Locale, which is optional.
raw docstring

FRIDAYclj/s


greaterclj/s

(greater x y)

henceclj/s

(hence dur)

hourclj/s

(hour t)

hoursclj/s

(hours v)

inclj/s

(in ldt z)

incclj/s

(inc t)

instclj/s

(inst)
(inst v)

instantclj/s

(instant)
(instant v)

instant?clj/s

(instant? v)

intclj/s

(int arg)

interval?clj/s

(interval? v)

JANUARYclj/s


JULYclj/s


JUNEclj/s


last-day-of-monthclj/s

(last-day-of-month)
(last-day-of-month t)

last-day-of-yearclj/s

(last-day-of-year)
(last-day-of-year t)

last-in-monthclj/s

(last-in-month dow)
(last-in-month t dow)

lesserclj/s

(lesser x y)

longclj/s

(long arg)

MARCHclj/s


maxclj/s

(max arg & args)

Find the latest of the given arguments. Callers should ensure that no argument is nil.

Find the latest of the given arguments. Callers should ensure that no
argument is nil.
raw docstring

max-keyclj/s

(max-key _k x)
(max-key k x y)
(max-key k x y & more)

Same as clojure.core/max-key, but works on dates, rather than numbers

Same as clojure.core/max-key, but works on dates, rather than numbers
raw docstring

max-of-typeclj/s


MAYclj/s


microsclj/s

(micros v)

microsecondclj/s

(microsecond t)

midnightclj/s

(midnight)
(midnight date)

midnight?clj/s

(midnight? t)

millisclj/s

(millis v)

millisecondclj/s

(millisecond t)

minclj/s

(min arg & args)

Find the earliest of the given arguments. Callers should ensure that no argument is nil.

Find the earliest of the given arguments. Callers should ensure that no
argument is nil.
raw docstring

min-keyclj/s

(min-key _k x)
(min-key k x y)
(min-key k x y & more)

Same as clojure.core/min-key, but works on dates, rather than numbers

Same as clojure.core/min-key, but works on dates, rather than numbers
raw docstring

min-of-typeclj/s


minuteclj/s

(minute t)

minutesclj/s

(minutes v)

modify-printing-of-time-literals-if-enabled!clj/smacro

(modify-printing-of-time-literals-if-enabled!)

MONDAYclj/s


monthclj/s

(month)
(month v)

month?clj/s

(month? v)

monthsclj/s

(months v)

nanosclj/s

(nanos v)

nanosecondclj/s

(nanosecond t)

negatedclj/s

(negated d)

Return the duration as a negative duration

Return the duration as a negative duration
raw docstring

new-dateclj/s

(new-date)
(new-date epoch-day)
(new-date year day-of-year)
(new-date year month day-of-month)

new-durationclj/s

(new-duration n u)

new-periodclj/s

(new-period n u)

new-timeclj/s

(new-time)
(new-time hour minute)
(new-time hour minute second)
(new-time hour minute second nano)

new-year-monthclj/s

(new-year-month)
(new-year-month year month)

nextclj/s

(next dow)
(next t dow)

next-or-sameclj/s

(next-or-same dow)
(next-or-same t dow)

noonclj/s

(noon)
(noon date)

NOVEMBERclj/s


nowclj/s

(now)

OCTOBERclj/s


of-daysclj/s

(of-days n)

Takes a java.lang.Long n and returns a period of n days.

Takes a java.lang.Long n and returns a period of n days.
raw docstring

of-hoursclj/s

(of-hours n)

Takes a java.lang.Long n and returns a duration of n hours.

Takes a java.lang.Long n and returns a duration of n hours.
raw docstring

of-microsclj/s

(of-micros n)

Takes a java.lang.Long n and returns a duration of n micros.

Takes a java.lang.Long n and returns a duration of n micros.
raw docstring

of-millisclj/s

(of-millis n)

Takes a java.lang.Long n and returns a duration of n micros.

Takes a java.lang.Long n and returns a duration of n micros.
raw docstring

of-minutesclj/s

(of-minutes n)

Takes a java.lang.Long n and returns a duration of n minutes.

Takes a java.lang.Long n and returns a duration of n minutes.
raw docstring

of-monthsclj/s

(of-months n)

Takes a java.lang.Long n and returns a period of n months.

Takes a java.lang.Long n and returns a period of n months.
raw docstring

of-nanosclj/s

(of-nanos n)

Takes a java.lang.Long n and returns a duration of n nanoseconds.

Takes a java.lang.Long n and returns a duration of n nanoseconds.
raw docstring

of-secondsclj/s

(of-seconds n)

Takes a java.lang.Long n and returns a duration of n seconds.

Takes a java.lang.Long n and returns a duration of n seconds.
raw docstring

of-yearsclj/s

(of-years n)

Takes a java.lang.Long n and returns a period of n years.

Takes a java.lang.Long n and returns a period of n years.
raw docstring

offset-byclj/s

(offset-by ldt offset)

offset-date-timeclj/s

(offset-date-time)
(offset-date-time v)

offset-date-time?clj/s

(offset-date-time? v)

onclj/s

(on t d)

parse-dateclj/s

(parse-date date-str formatter)

to parse an iso-formatted date, use (t/date "2020..") instead

to parse an iso-formatted date, use (t/date "2020..") instead
raw docstring

parse-date-timeclj/s

(parse-date-time date-str formatter)

to parse an iso-formatted date-time, use (t/date-time "2020..") instead

to parse an iso-formatted date-time, use (t/date-time "2020..") instead
raw docstring

parse-dayclj/s

(parse-day input)

en locale specific and borderline deprecated. consider writing your own regex or use a formatter. For example:

(-> (t/formatter "EEE") (cljc.java-time.format.date-time-formatter/parse "Tue") (cljc.java-time.day-of-week/from))

en locale specific and borderline deprecated.
consider writing your own regex or use a formatter. For example:

(-> (t/formatter "EEE")
    (cljc.java-time.format.date-time-formatter/parse "Tue")
    (cljc.java-time.day-of-week/from))
raw docstring

parse-monthclj/s

(parse-month input)

en locale specific and borderline deprecated. Consider writing your own regex or use a formatter. For example:

(-> (t/formatter "MMM") (cljc.java-time.format.date-time-formatter/parse "Jan") (cljc.java-time.month/from))

en locale specific and borderline deprecated. Consider writing your
own regex or use a formatter. For example:

(-> (t/formatter "MMM")
    (cljc.java-time.format.date-time-formatter/parse "Jan")
    (cljc.java-time.month/from))
raw docstring

parse-offset-date-timeclj/s

(parse-offset-date-time date-str formatter)

to parse an iso-formatted offset-date-time, use (t/offset-date-time "2020..") instead

to parse an iso-formatted offset-date-time, use (t/offset-date-time "2020..") instead
raw docstring

parse-timeclj/s

(parse-time date-str formatter)

to parse an iso-formatted time, use (t/time "20:20..") instead

to parse an iso-formatted time, use (t/time "20:20..") instead
raw docstring

parse-yearclj/s

(parse-year date-str formatter)

to parse an iso-formatted year, use (t/year "2020") instead

to parse an iso-formatted year, use (t/year "2020") instead
raw docstring

parse-year-monthclj/s

(parse-year-month date-str formatter)

to parse an iso-formatted year-month, use (t/year-month "2020..") instead

to parse an iso-formatted year-month, use (t/year-month "2020..") instead
raw docstring

parse-zoned-date-timeclj/s

(parse-zoned-date-time date-str formatter)

to parse an iso-formatted zoned-date-time, use (t/zoned-date-time "2020..") instead

to parse an iso-formatted zoned-date-time, use (t/zoned-date-time "2020..") instead
raw docstring

period?clj/s

(period? v)

predefined-formattersclj/s


previousclj/s

(previous dow)
(previous t dow)

previous-or-sameclj/s

(previous-or-same dow)
(previous-or-same t dow)

rangeclj/s


reset!clj/s

(reset! at newval)

reset-vals!clj/s

(reset-vals! at newval)

reverse-unit-mapclj/s


SATURDAYclj/s


secondclj/s

(second t)

secondsclj/s

(seconds v)

SEPTEMBERclj/s


SUNDAYclj/s


swap!clj/s

(swap! at f & args)

swap-vals!clj/s

(swap-vals! at f & args)

THURSDAYclj/s


tick-resolutionclj/s

(tick-resolution clk)
(tick-resolution clk dur)

timeclj/s

(time)
(time v)

time?clj/s

(time? v)

todayclj/s

(today)

tomorrowclj/s

(tomorrow)

truncateclj/s

(truncate x u)

TUESDAYclj/s


unit-mapclj/s


unitsclj/s

(units x)

UTCclj/s


WEDNESDAYclj/s


withclj/s

(with t adj)
(with t fld new-value)

Adjust a temporal with an adjuster or field

Adjust a temporal with an adjuster or field
raw docstring

with-clockclj/smacro

(with-clock clock & body)

yearclj/s

(year)
(year v)

year-monthclj/s

(year-month)
(year-month v)

year-month?clj/s

(year-month? v)

year?clj/s

(year? v)

yearsclj/s

(years v)

yesterdayclj/s

(yesterday)

zoneclj/s

(zone)
(zone z)

zone-offsetclj/s

(zone-offset offset)
(zone-offset hours minutes)
(zone-offset hours minutes seconds)

zone-offset?clj/s

(zone-offset? v)

zone?clj/s

(zone? v)

zoned-date-timeclj/s

(zoned-date-time)
(zoned-date-time v)

zoned-date-time?clj/s

(zoned-date-time? v)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close