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
(< _x)
(< x y)
(< x y & more)
(<< t n-or-d)
(<= _x)
(<= x y)
(<= x y & more)
(= _x)
(= x y)
(= x y & more)
(> _x)
(> x y)
(> x y & more)
(>= _x)
(>= x y)
(>= x y & more)
(>> t n-or-d)
(ago dur)
(at d t)
(atom)
(atom clk)
(beginning v)
(between v1 v2)
(clock)
(clock i)
(clock? v)
(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.
(compare-and-set! at oldval newval)
(current-clock)
(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
(date)
(date v)
(date-time)
(date-time v)
(date-time? v)
(date? v)
(day-of-month)
(day-of-month v)
(day-of-week)
(day-of-week v)
(day-of-week-in-month ordinal dow)
(day-of-week-in-month t ordinal dow)
(day-of-week? v)
(days v)
(dec t)
(divide t divisor)
(duration x)
(duration? v)
(end v)
(epoch)
(fields t)
(first-day-of-month)
(first-day-of-month t)
(first-day-of-next-month)
(first-day-of-next-month t)
(first-day-of-next-year)
(first-day-of-next-year t)
(first-day-of-year)
(first-day-of-year t)
(first-in-month dow)
(first-in-month t dow)
(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.
(formatter fmt)
(formatter fmt locale)
Constructs a DateTimeFormatter out of either a
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.
(greater x y)
(hence dur)
(hour t)
(hours v)
(in ldt z)
(inc t)
(inst)
(inst v)
(instant)
(instant v)
(instant? v)
(int arg)
(interval? v)
(last-day-of-month)
(last-day-of-month t)
(last-day-of-year)
(last-day-of-year t)
(last-in-month dow)
(last-in-month t dow)
(lesser x y)
(long arg)
(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.
(micros v)
(microsecond t)
(midnight)
(midnight date)
(midnight? t)
(millis v)
(millisecond t)
(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.
(minute t)
(minutes v)
(modify-printing-of-time-literals-if-enabled!)
(month)
(month v)
(month? v)
(months v)
(nanos v)
(nanosecond t)
(negated d)
Return the duration as a negative duration
Return the duration as a negative duration
(new-date)
(new-date epoch-day)
(new-date year day-of-year)
(new-date year month day-of-month)
(new-duration n u)
(new-period n u)
(new-time)
(new-time hour minute)
(new-time hour minute second)
(new-time hour minute second nano)
(new-year-month)
(new-year-month year month)
(next dow)
(next t dow)
(next-or-same dow)
(next-or-same t dow)
(noon)
(noon date)
(now)
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(offset-by ldt offset)
(offset-date-time)
(offset-date-time v)
(offset-date-time? v)
(on t d)
(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
(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
(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))
(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))
(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
(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
(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
(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
(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
(period? v)
(previous dow)
(previous t dow)
(previous-or-same dow)
(previous-or-same t dow)
(reset! at newval)
(reset-vals! at newval)
(second t)
(seconds v)
(swap! at f & args)
(swap-vals! at f & args)
(tick-resolution clk)
(tick-resolution clk dur)
(time)
(time v)
(time? v)
(today)
(tomorrow)
(truncate x u)
(units x)
(with t adj)
(with t fld new-value)
Adjust a temporal with an adjuster or field
Adjust a temporal with an adjuster or field
(with-clock clock & body)
(year)
(year v)
(year-month)
(year-month v)
(year-month? v)
(year? v)
(years v)
(yesterday)
(zone)
(zone z)
(zone-offset offset)
(zone-offset hours minutes)
(zone-offset hours minutes seconds)
(zone-offset? v)
(zone? v)
(zoned-date-time)
(zoned-date-time v)
(zoned-date-time? v)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close