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
(-)
(- arg)
(- arg & args)
Subtract amounts of time.
Subtract amounts of time.
(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.
(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
(day-of-week-in-month ordinal dow)
(day-of-week-in-month t ordinal 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.
(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.
(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.
(modify-printing-of-time-literals-if-enabled!)
(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-time)
(new-time hour minute)
(new-time hour minute second)
(new-time hour minute second nano)
(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.
(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
(with t adj)
(with t fld new-value)
Adjust a temporal with an adjuster or field
Adjust a temporal with an adjuster or field
(zone-offset offset)
(zone-offset hours minutes)
(zone-offset hours minutes seconds)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close