Liking cljdoc? Tell your friends :D

toolbelt.date


<clj

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

<=clj

(<= 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.)
sourceraw docstring

>clj

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

>=clj

(>= 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.)
sourceraw docstring

beginning-of-dayclj

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

beginning-of-monthclj

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

dayclj

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

daysclj

(days n)

Given a number, returns a Period representing that many days.

Given a number, returns a Period representing that many days.
sourceraw docstring

end-of-dayclj

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

end-of-monthclj

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

from-tz-datecljdeprecated

source

from-tz-date-timecljdeprecated

source

in-daysclj

(in-days p)

Return the interval or period in days.

Return the interval or period in days.
sourceraw docstring

intervalclj

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

is-first-day-of-month?clj

(is-first-day-of-month? d)
source

minusclj

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

monthclj

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

monthsclj

(months n)

Given a number, returns a Period representing that many months.

Given a number, returns a Period representing that many months.
sourceraw docstring

next-dayclj

(next-day date)
source

next-monthclj

(next-month date)
source

plusclj

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

shortclj

(short date & [include-time])
source

short-datecljdeprecated

source

short-date-timecljdeprecated

(short-date-time date)

Use short instead.

Use `short` instead.
sourceraw docstring

to-utc-corrected-datecljdeprecated

source

to-utc-corrected-date-timecljdeprecated

source

transformclj

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

tz-correctedclj

(tz-corrected inst tz)

Produce the UTC instant in time relative to timezone tz.

Produce the UTC instant in time relative to timezone `tz`.
sourceraw docstring

tz-corrected-dtclj

(tz-corrected-dt dt tz)
source

tz-uncorrectedclj

(tz-uncorrected inst tz)

Produce the absolute UTC instant from timezone tz.

Produce the absolute UTC instant from timezone `tz`.
sourceraw docstring

tz-uncorrected-dtclj

(tz-uncorrected-dt dt tz)
source

within?clj

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

yearclj

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

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

× close