Liking cljdoc? Tell your friends :D

tick.core


*clock*clj/s

source

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

+clj/s

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

Sum amounts of time

Sum amounts of time
sourceraw docstring

-clj/s

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

Subtract amounts of time.

Subtract amounts of time.
sourceraw docstring

<clj/s

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

<<clj/s

(<< t n-or-d)
source

<=clj/s

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

=clj/s

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

>clj/s

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

>=clj/s

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

>>clj/s

(>> t n-or-d)
source

agoclj/s

(ago dur)
source

APRILclj/s

source

atclj/s

(at d t)
source

atomclj/s

(atom)
(atom clk)
source

AtomicClockclj/s

source

AUGUSTclj/s

source

beginningclj/s

(beginning v)
source

betweenclj/s

(between v1 v2)
source

clockclj/s

(clock)
(clock i)
source

clock?clj/s

(clock? v)
source

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

compare-and-set!clj/s

(compare-and-set! at oldval newval)
source

current-clockclj/s

(current-clock)
source

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

dateclj/s

(date)
(date v)
source

date-timeclj/s

(date-time)
(date-time v)
source

date-time?clj/s

(date-time? v)
source

date?clj/s

(date? v)
source

day-of-monthclj/s

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

day-of-weekclj/s

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

day-of-week-in-monthclj/s

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

day-of-week?clj/s

(day-of-week? v)
source

daysclj/s

(days v)
source

decclj/s

(dec t)
source

DECEMBERclj/s

source

divideclj/s

(divide t divisor)
source

durationclj/s

(duration x)
source

duration?clj/s

(duration? v)
source

endclj/s

(end v)
source

epochclj/s

(epoch)
source

FEBRUARYclj/s

source

field-mapclj/s

source

fieldsclj/s

(fields t)
source

FieldsLookupcljs

source

first-day-of-monthclj/s

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

first-day-of-next-monthclj/s

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

first-day-of-next-yearclj/s

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

first-day-of-yearclj/s

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

first-in-monthclj/s

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

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

FRIDAYclj/s

source

greaterclj/s

(greater x y)
source

henceclj/s

(hence dur)
source

hourclj/s

(hour t)
source

hoursclj/s

(hours v)
source

inclj/s

(in ldt z)
source

incclj/s

(inc t)
source

instclj/s

(inst)
(inst v)
source

instantclj/s

(instant)
(instant v)
source

instant?clj/s

(instant? v)
source

intclj/s

(int arg)
source

interval?clj/s

(interval? v)
source

JANUARYclj/s

source

JULYclj/s

source

JUNEclj/s

source

last-day-of-monthclj/s

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

last-day-of-yearclj/s

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

last-in-monthclj/s

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

lesserclj/s

(lesser x y)
source

longclj/s

(long arg)
source

MARCHclj/s

source

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

max-of-typeclj/s

source

MAYclj/s

source

microsclj/s

(micros v)
source

microsecondclj/s

(microsecond t)
source

midnightclj/s

(midnight)
(midnight date)
source

midnight?clj/s

(midnight? t)
source

millisclj/s

(millis v)
source

millisecondclj/s

(millisecond t)
source

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

min-of-typeclj/s

source

minuteclj/s

(minute t)
source

minutesclj/s

(minutes v)
source

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

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

MONDAYclj/s

source

monthclj/s

(month)
(month v)
source

month?clj/s

(month? v)
source

monthsclj/s

(months v)
source

nanosclj/s

(nanos v)
source

nanosecondclj/s

(nanosecond t)
source

negatedclj/s

(negated d)

Return the duration as a negative duration

Return the duration as a negative duration
sourceraw docstring

new-dateclj/s

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

new-durationclj/s

(new-duration n u)
source

new-periodclj/s

(new-period n u)
source

new-timeclj/s

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

new-year-monthclj/s

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

nextclj/s

(next dow)
(next t dow)
source

next-or-sameclj/s

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

noonclj/s

(noon)
(noon date)
source

NOVEMBERclj/s

source

nowclj/s

(now)
source

OCTOBERclj/s

source

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

offset-byclj/s

(offset-by ldt offset)
source

offset-date-timeclj/s

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

offset-date-time?clj/s

(offset-date-time? v)
source

onclj/s

(on t d)
source

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

period?clj/s

(period? v)
source

predefined-formattersclj/s

source

previousclj/s

(previous dow)
(previous t dow)
source

previous-or-sameclj/s

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

rangeclj/s

source

reset!clj/s

(reset! at newval)
source

reset-vals!clj/s

(reset-vals! at newval)
source

reverse-unit-mapclj/s

source

SATURDAYclj/s

source

secondclj/s

(second t)
source

secondsclj/s

(seconds v)
source

SEPTEMBERclj/s

source

SUNDAYclj/s

source

swap!clj/s

(swap! at f & args)
source

swap-vals!clj/s

(swap-vals! at f & args)
source

THURSDAYclj/s

source

tick-resolutionclj/s

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

timeclj/s

(time)
(time v)
source

time?clj/s

(time? v)
source

todayclj/s

(today)
source

tomorrowclj/s

(tomorrow)
source

truncateclj/s

(truncate x u)
source

TUESDAYclj/s

source

unit-mapclj/s

source

unitsclj/s

(units x)
source

UTCclj/s

source

WEDNESDAYclj/s

source

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

with-clockclj/smacro

(with-clock clock & body)
source

yearclj/s

(year)
(year v)
source

year-monthclj/s

(year-month)
(year-month v)
source

year-month?clj/s

(year-month? v)
source

year?clj/s

(year? v)
source

yearsclj/s

(years v)
source

yesterdayclj/s

(yesterday)
source

zoneclj/s

(zone)
(zone z)
source

zone-offsetclj/s

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

zone-offset?clj/s

(zone-offset? v)
source

zone?clj/s

(zone? v)
source

zoned-date-timeclj/s

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

zoned-date-time?clj/s

(zoned-date-time? v)
source

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

× close