Liking cljdoc? Tell your friends :D
Mostly clj/s.
Exceptions indicated.

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)

Same as clojure.core/<, but works on dates, rather than numbers

Same as clojure.core/<, but works on dates, rather than numbers
sourceraw docstring

<<clj/s

(<< t n-or-d)

shift Temporal backward

shift Temporal backward
sourceraw docstring

<=clj/s

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

Same as clojure.core/<=, but works on dates, rather than numbers

Same as clojure.core/<=, but works on dates, rather than numbers
sourceraw docstring

=clj/s

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

Same as clojure.core/=, but works on dates, rather than numbers. can compare different types, e.g. Instant vs ZonedDateTime

Same as clojure.core/=, but works on dates, rather than numbers.
can compare different types, e.g. Instant vs ZonedDateTime
sourceraw docstring

>clj/s

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

Same as clojure.core/>, but works on dates, rather than numbers

Same as clojure.core/>, but works on dates, rather than numbers
sourceraw docstring

>=clj/s

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

Same as clojure.core/>=, but works on dates, rather than numbers

Same as clojure.core/>=, but works on dates, rather than numbers
sourceraw docstring

>>clj/s

(>> t n-or-d)

shift Temporal forward

shift Temporal forward
sourceraw docstring

agoclj/s

(ago dur)

current instant shifted back by duration 'dur'

current instant shifted back by duration 'dur'
sourceraw docstring

APRILclj/s

source

atclj/s

(at d t)

Set date to be AT a time

Set date to be AT a time
sourceraw docstring

atomclj/s

(atom)
(atom clk)

construct atomic clock

construct atomic clock
sourceraw docstring

AUGUSTclj/s

source

backward-compatible-time-span-extensionsclj/s

(backward-compatible-time-span-extensions)

pre v0.7, ITimeSpan was extended as per this body. run this function to create those extensions.

ITimeSpan is implemented by default on types with a natural beginning and end

pre v0.7, ITimeSpan was extended as per this body. run this function to create those extensions.

ITimeSpan is implemented by default on types with a natural beginning and end
sourceraw docstring

beginningclj/s

(beginning v)

the beginning of the range of ITimeSpan v or v

the beginning of the range of ITimeSpan v or v
sourceraw docstring

betweenclj/s

(between v1 v2)
(between v1 v2 unit)

for the 2-arity version, find the temporal-amount between v1 and v2, or for the 3-arity version the amount of 'unit' between v1 and v2

for the 2-arity version, find the temporal-amount between v1 and v2, 
or for the 3-arity version the amount of 'unit' between v1 and v2
sourceraw docstring

clockclj/s

(clock)
(clock i)

return i as a clock

return i as a clock
sourceraw docstring

clock?clj/s

(clock? v)

true if v is a clock?

true if v is a clock?
sourceraw docstring

coincident?clj/s

(coincident? containing-interval contained-interval)
(coincident? start end event)

for the 2-arity ver, Does containing-interval wholly contain the given contained-interval?

for the 3-arity, does the event lie within the span of time described by start and end

for the 2-arity ver, Does containing-interval wholly contain the given contained-interval?

for the 3-arity, does the event lie within the span of time described by start and end
sourceraw docstring

compare-and-set!clj/s

(compare-and-set! at oldval newval)

cas on atomic clock 'at'

cas on atomic clock 'at' 
sourceraw docstring

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)

true if v is a date-time?

true if v is a date-time?
sourceraw docstring

date?clj/s

(date? v)

true if v is a date?

true if v is a date?
sourceraw docstring

day-of-monthclj/s

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

extract day-of-month from v

extract day-of-month from v
sourceraw docstring

day-of-weekclj/s

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

extract day-of-week from v

extract day-of-week from v
sourceraw docstring

day-of-week-in-monthclj/s

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

day-of-week?clj/s

(day-of-week? v)

true if v is a day-of-week?

true if v is a day-of-week?
sourceraw docstring

daysclj/s

(days v)

extract days from 'v'

extract days from 'v'
sourceraw docstring

decclj/s

(dec t)
source

DECEMBERclj/s

source

divideclj/s

(divide t divisor)

divide TemporalAmount t by divisor, which is a unit e.g. :hours or a TemporalAmount

divide TemporalAmount t by divisor, which is a unit e.g. :hours or a TemporalAmount
sourceraw docstring

durationclj/s

(duration x)

return Duration or Period (whichever appropriate based on type) contained within the range of ITimeSpan x

return Duration or Period (whichever appropriate based on type) contained within the range of ITimeSpan x
sourceraw docstring

duration?clj/s

(duration? v)

true if v is a duration?

true if v is a duration?
sourceraw docstring

endclj/s

(end v)

the end of the range of ITimeSpan v or v

the end of the range of ITimeSpan v or v
sourceraw docstring

epochclj/s

(epoch)

Constant for the 1970-01-01T00:00:00Z epoch instant

Constant for the 1970-01-01T00:00:00Z epoch instant
sourceraw docstring

FEBRUARYclj/s

source

field-mapclj/s

keyword to chrono-field

keyword to chrono-field
sourceraw docstring

fieldsclj/s

(fields t)
source (clj)source (cljs)

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 day-of-week)
(first-in-month t day-of-week)
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)

the greater of x and y

the greater of x and y
sourceraw docstring

henceclj/s

(hence dur)

current instant shifted forward by duration 'dur'

current instant shifted forward by duration 'dur'
sourceraw docstring

hourclj/s

(hour t)

extract hour from t

extract hour from t
sourceraw docstring

hoursclj/s

(hours v)

extract hours from 'v'

extract hours from 'v'
sourceraw docstring

inclj/s

(in ldt z)

Set a date-time to be in a time-zone

Set a date-time to be in a time-zone
sourceraw docstring

incclj/s

(inc t)
source

instclj/s

(inst)
(inst v)
source

instantclj/s

(instant)
(instant v)
source

instant?clj/s

(instant? v)

true if v is a instant?

true if v is a instant?
sourceraw docstring

intclj/s

(int arg)
source

interval?clj/s

(interval? v)

true if v is a interval?

true if v is a interval?
sourceraw docstring

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 day-of-week)
(last-in-month t day-of-week)
source

lesserclj/s

(lesser x y)

the lesser of x and y

the lesser of x and y
sourceraw docstring

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

max-of-typeclj/s

return e.g Instant/MAX given and Instant

return e.g Instant/MAX given and Instant
sourceraw docstring

MAYclj/s

source

microsclj/s

(micros v)

extract micros from 'v'

extract micros from 'v'
sourceraw docstring

microsecondclj/s

(microsecond t)

extract microsecond from t

extract microsecond from t
sourceraw docstring

midnightclj/s

(midnight)
(midnight date)
source

midnight?clj/s

(midnight? t)
source

millisclj/s

(millis v)

extract millis from 'v'

extract millis from 'v'
sourceraw docstring

millisecondclj/s

(millisecond t)

extract millisecond from t

extract millisecond from t
sourceraw docstring

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

min-of-typeclj/s

return e.g Instant/MIN given and Instant

return e.g Instant/MIN given and Instant
sourceraw docstring

minuteclj/s

(minute t)

extract minute from t

extract minute from t
sourceraw docstring

minutesclj/s

(minutes v)

extract minutes from 'v'

extract minutes from 'v'
sourceraw docstring

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)

extract month from v

extract month from v
sourceraw docstring

month?clj/s

(month? v)

true if v is a month?

true if v is a month?
sourceraw docstring

monthsclj/s

(months v)

extract months from 'v'

extract months from 'v'
sourceraw docstring

nanosclj/s

(nanos v)

extract nanos from 'v'

extract nanos from 'v'
sourceraw docstring

nanosecondclj/s

(nanosecond t)

extract nanosecond from t

extract nanosecond from t
sourceraw docstring

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 day-of-week)
(next t day-of-week)
source

next-or-sameclj/s

(next-or-same day-of-week)
(next-or-same t day-of-week)
source

noonclj/s

(noon)
(noon date)
source

NOVEMBERclj/s

source

nowclj/s

(now)

same as (t/instant)

same as (t/instant)
sourceraw docstring

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)

Set a date-time to be offset by an amount

Set a date-time to be offset by an amount
sourceraw docstring

offset-date-timeclj/s

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

offset-date-time?clj/s

(offset-date-time? v)

true if v is a offset-date-time?

true if v is a offset-date-time?
sourceraw docstring

onclj/s

(on t d)

Set time be ON a date

Set time be ON a date
sourceraw docstring

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)

true if v is a period?

true if v is a period?
sourceraw docstring

predefined-formattersclj/s

source

previousclj/s

(previous day-of-week)
(previous t day-of-week)
source

previous-or-sameclj/s

(previous-or-same day-of-week)
(previous-or-same t day-of-week)
source

rangeclj/s

Returns a lazy seq of times from start (inclusive) to end (exclusive, nil means forever), by step, where start defaults to 0, step to 1, and end to infinity.

Returns a lazy seq of times from start (inclusive) to end (exclusive, nil means forever), by step, where start defaults to 0, step to 1, and end to infinity.
sourceraw docstring

reset!clj/s

(reset! at newval)

reset! on atomic clock 'at'

reset! on atomic clock 'at' 
sourceraw docstring

reset-vals!clj/s

(reset-vals! at newval)

reset-vals! on atomic clock 'at'

reset-vals! on atomic clock 'at' 
sourceraw docstring

reverse-unit-mapclj/s

source

SATURDAYclj/s

source

secondclj/s

(second t)

extract second from t

extract second from t
sourceraw docstring

secondsclj/s

(seconds v)

extract seconds from 'v'

extract seconds from 'v'
sourceraw docstring

SEPTEMBERclj/s

source

SUNDAYclj/s

source

swap!clj/s

(swap! at f & args)

swap! on atomic clock 'at'

swap! on atomic clock 'at' 
sourceraw docstring

swap-vals!clj/s

(swap-vals! at f & args)

swap-vals! on atomic clock 'at'

swap-vals! on atomic clock 'at' 
sourceraw docstring

THURSDAYclj/s

source

tick-resolutionclj/s

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

Obtains a clock that returns instants from the specified clock truncated to the nearest occurrence of the specified duration.

Obtains a clock that returns instants from the specified clock truncated to the nearest occurrence of the specified duration.
sourceraw docstring

timeclj/s

(time)
(time v)

extract time from v

extract time from v
sourceraw docstring

time?clj/s

(time? v)

true if v is a time?

true if v is a time?
sourceraw docstring

todayclj/s

(today)

same as (t/date)

same as (t/date)
sourceraw docstring

tomorrowclj/s

(tomorrow)
source

truncateclj/s

(truncate x u)

Returns a copy of x truncated to the specified unit.

Returns a copy of x truncated to the specified unit.
sourceraw docstring

TUESDAYclj/s

source

unit-mapclj/s

keyword to chrono-unit

keyword to chrono-unit
sourceraw docstring

unitsclj/s

(units x)

the units contained within TemporalAmount x.

Seconds and nanos for Duration. Years, months, days for Period

the units contained within TemporalAmount x.

Seconds and nanos for Duration.
Years, months, days for Period
sourceraw docstring

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)

temporarily change ambient now+zone info the given 'clock' could be an Instant, zone or zoned-date-time

temporarily change ambient now+zone info 
the given 'clock' could be an Instant, zone or zoned-date-time
sourceraw docstring

yearclj/s

(year)
(year v)

extract year from v

extract year from v
sourceraw docstring

year-monthclj/s

(year-month)
(year-month v)

extract year-month from v

extract year-month from v
sourceraw docstring

year-month?clj/s

(year-month? v)

true if v is a year-month?

true if v is a year-month?
sourceraw docstring

year?clj/s

(year? v)

true if v is a year?

true if v is a year?
sourceraw docstring

yearsclj/s

(years v)

extract years from 'v'

extract years from 'v'
sourceraw docstring

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)

true if v is a zone-offset?

true if v is a zone-offset?
sourceraw docstring

zone?clj/s

(zone? v)

true if v is a zone?

true if v is a zone?
sourceraw docstring

zoned-date-timeclj/s

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

zoned-date-time?clj/s

(zoned-date-time? v)

true if v is a zoned-date-time?

true if v is a zoned-date-time?
sourceraw docstring

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

× close