(< date & more)
Returns true if dates are in monotonically increasing order, otherwise false.
Arguments are date instances of any type (e.g. timestamp, java-date, date/time etc.)
Returns true if dates are in monotonically increasing order, otherwise false. Arguments are date instances of any type (e.g. timestamp, java-date, date/time etc.)
(<= date & more)
Returns true if dates are in monotonically non-decreasing order, otherwise false.
Arguments are date instances of any type (e.g. timestamp, java-date, date/time etc.)
Returns true if dates are in monotonically non-decreasing order, otherwise false. Arguments are date instances of any type (e.g. timestamp, java-date, date/time etc.)
(> date & more)
Returns true if dates are in monotonically decreasing order, otherwise false.
Arguments are date instances of any type (e.g. timestamp, java-date, date/time etc.)
Returns true if dates are in monotonically decreasing order, otherwise false. Arguments are date instances of any type (e.g. timestamp, java-date, date/time etc.)
(>= date & more)
Returns true if dates are in monotonically non-increasing order, otherwise false.
Arguments are date instances of any type (e.g. timestamp, java-date, date/time etc.)
Returns true if dates are in monotonically non-increasing order, otherwise false. Arguments are date instances of any type (e.g. timestamp, java-date, date/time etc.)
(beginning-of-day date)
(beginning-of-day date tz)
Returns a java.util.Date representing the time 00:00:00 of the given date in timezone 'tz'. Arity 1 version: uses 'utc' timezone.
'date' is a date instance as per 'toolbelt.date/transform'.
Returns a java.util.Date representing the time 00:00:00 of the given date in timezone 'tz'. Arity 1 version: uses 'utc' timezone. 'date' is a date instance as per 'toolbelt.date/transform'.
(beginning-of-month date)
(beginning-of-month date tz)
Returns a java.util.Date representing the first day of the month of the given date in timezone 'tz'. Arity 1 version: uses 'utc' timezone.
'date' is a date instance as per 'toolbelt.date/transform'.
Returns a java.util.Date representing the first day of the month of the given date in timezone 'tz'. Arity 1 version: uses 'utc' timezone. 'date' is a date instance as per 'toolbelt.date/transform'.
(day date)
Return the day of month component of the given date.
'date' is a date instance of any type (e.g. timestamp, java-date, date/time etc.)
Return the day of month component of the given date. 'date' is a date instance of any type (e.g. timestamp, java-date, date/time etc.)
(days n)
Given a number, returns a Period representing that many days.
Given a number, returns a Period representing that many days.
(end-of-day date)
(end-of-day date tz)
Returns a java.util.Date representing the time 23:59:59 of the given date in timezone 'tz'. Arity 1 version: uses 'utc' timezone.
'date' is a date instance as per 'toolbelt.date/transform'.
Returns a java.util.Date representing the time 23:59:59 of the given date in timezone 'tz'. Arity 1 version: uses 'utc' timezone. 'date' is a date instance as per 'toolbelt.date/transform'.
(end-of-month date)
(end-of-month date tz)
Returns a java.util.Date representing the first day of the month of the given date in timezone 'tz'. Arity 1 version: uses 'utc' timezone.
'date' is a date instance as per 'toolbelt.date/transform'.
Returns a java.util.Date representing the first day of the month of the given date in timezone 'tz'. Arity 1 version: uses 'utc' timezone. 'date' is a date instance as per 'toolbelt.date/transform'.
(in-days p)
Return the interval or period in days.
Return the interval or period in days.
(interval from to)
Returns an interval representing the span between the two given dates. Note that intervals are closed on the left and open on the right.
'from' and 'to' are date instances of any type where 'from' is before 'to'.
Returns an interval representing the span between the two given dates. Note that intervals are closed on the left and open on the right. 'from' and 'to' are date instances of any type where 'from' is before 'to'.
(minus period)
(minus date period)
Transforms a given date and returns a new java.util.Date moved backwards by the given Period(s). Arity 1 version: moved backwards from System/currentTimeMillis.
'date' is a date instance as per 'toolbelt.date/transform'.
Transforms a given date and returns a new java.util.Date moved backwards by the given Period(s). Arity 1 version: moved backwards from System/currentTimeMillis. 'date' is a date instance as per 'toolbelt.date/transform'.
(month date)
Return the month component of the given date.
'date' is a date instance of any type (e.g. timestamp, java-date, date/time etc.)
Return the month component of the given date. 'date' is a date instance of any type (e.g. timestamp, java-date, date/time etc.)
(months n)
Given a number, returns a Period representing that many months.
Given a number, returns a Period representing that many months.
(plus period)
(plus date period)
Transforms a given date and returns a new java.util.Date moved forwards by the given Period(s). Arity 1 version: moved forwards from System/currentTimeMillis.
'date' is a date instance as per 'toolbelt.date/transform'.
Transforms a given date and returns a new java.util.Date moved forwards by the given Period(s). Arity 1 version: moved forwards from System/currentTimeMillis. 'date' is a date instance as per 'toolbelt.date/transform'.
(short-date-time date)
Use short
instead.
Use `short` instead.
(transform d f & args)
'Transforms' a date where 'd' is a date of any type (timestamp, org.joda.DateTime, java.util.Date. etc), and returns a java.util.Date, after applying a transformation function 'f', which is a function that takes a date/time instance and any supplied args and returns a date.
'Transforms' a date where 'd' is a date of any type (timestamp, org.joda.DateTime, java.util.Date. etc), and returns a java.util.Date, after applying a transformation function 'f', which is a function that takes a date/time instance and any supplied args and returns a date.
(tz-corrected inst tz)
Produce the UTC instant in time relative to timezone tz
.
Produce the UTC instant in time relative to timezone `tz`.
(tz-uncorrected inst tz)
Produce the absolute UTC instant from timezone tz
.
Produce the absolute UTC instant from timezone `tz`.
(within? interval test)
(within? start end test)
With 2 arguments: Returns true if the given Interval contains the given date. Note that if the date is exactly equal to the end of the interval, this function returns false. With 3 arguments: Returns true if the start date is equal to or before and the end date is equal to or after the test ReadablePartial.
With 2 arguments: Returns true if the given Interval contains the given date. Note that if the date is exactly equal to the end of the interval, this function returns false. With 3 arguments: Returns true if the start date is equal to or before and the end date is equal to or after the test ReadablePartial.
(year date)
Return the year component of the given date.
'date' is a date instance of any type (e.g. timestamp, java-date, date/time etc.)
Return the year component of the given date. 'date' is a date instance of any type (e.g. timestamp, java-date, date/time etc.)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close