Liking cljdoc? Tell your friends :D

metosin.dates

Use this namespace to format dates and datetimes for user.

Use this namespace to format dates and datetimes for user.
raw docstring

addclj/sdeprecated

(add date x)

DEPRECATED: Use plus instead.

DEPRECATED: Use plus instead.
sourceraw docstring

after?clj/s

(after? a b)

Defined only for Date objects. Does nil check.

Defined only for Date objects. Does nil check.
sourceraw docstring

before?clj/s

(before? a b)

Defined only for Date objects. Does nil check.

Defined only for Date objects. Does nil check.
sourceraw docstring

closure-timezoneclj

(closure-timezone timezone-id)

Builds Closure timeZoneData map from JodaTime timezone.

Builds Closure timeZoneData map from JodaTime timezone.
sourceraw docstring

dateclj/s

(date)
(date x)
(date s {:keys [pattern]})
(date y m d)
source

date->strclj/sdeprecated

(date->str d)

DEPRECATED: Use format instead.

DEPRECATED: Use format instead.
sourceraw docstring

date-timeclj/s

(date-time)
(date-time x)
(date-time s {:keys [pattern]})
(date-time y m d hh mm)
(date-time y m d hh mm ss)
(date-time y m d hh mm ss millis)
source

date-time->strclj/sdeprecated

(date-time->str d)

DEPRECATED: Use format instead.

DEPRECATED: Use format instead.
sourceraw docstring

date-time?clj/s

(date-time? x)

Test if x is date-time as defined by this namespace.

Platform dependent libraries might have other date-time objects, but only the exact classes used by this namespace are accepted.

Test if x is date-time as defined by this namespace.

Platform dependent libraries might have other date-time objects, but only the
exact classes used by this namespace are accepted.
sourceraw docstring

date?clj/s

(date? x)

Test if x is date or date-time (as they extend date) as defined by this namespace.

Platform dependent libraries might have other date objects, but only the exact classes used by this namespace are accepted.

Test if x is date or date-time (as they extend date) as defined by this namespace.

Platform dependent libraries might have other date objects, but only the
exact classes used by this namespace are accepted.
sourceraw docstring

DateTimeclj/s

source

daysclj/s

(days)
(days n)
source

end-of-dayclj/s

(end-of-day date-time)
source

end-of-monthclj/s

(end-of-month date)
source

end-of-weekclj/s

(end-of-week date)
source

end-of-yearclj/s

(end-of-year date)
source

equal?clj/s

(equal? a b)

Defined only for Date objects. Does nil check.

Defined only for Date objects. Does nil check.
sourceraw docstring

formatclj/s

(format x {:keys [pattern timezone]})
source

hoursclj/s

(hours)
(hours n)
source

initialize-timezone!clj/smacro

(initialize-timezone! timezone-id)

Initializes given timezone for ClojureScript use.

Initializes given timezone for ClojureScript use.
sourceraw docstring

LocalDateclj/s

source

minusclj/s

(minus date x)
source

minutesclj/s

(minutes)
(minutes n)
source

monthsclj/s

(months)
(months n)
source

plusclj/s

(plus date x)
source

secondsclj/s

(seconds)
(seconds n)
source

start-of-dayclj/s

(start-of-day date-time)
source

start-of-monthclj/s

(start-of-month date)
source

start-of-weekclj/s

(start-of-week date)
source

start-of-yearclj/s

(start-of-year date)
source

timezonescljs

source

to-stringclj/s

(to-string x)

Returns good (e.g. RFC3339 or YYYY-MM-DD) representation for given object.

Returns good (e.g. RFC3339 or YYYY-MM-DD) representation for given object.
sourceraw docstring

ToDateclj/s≠protocol

-to-dateclj/s

(-to-date x)

Convers DateTime or such to Date.

Convers DateTime or such to Date.
source

ToDateTimeclj/s≠protocol

-to-date-timeclj/s

(-to-date-time x)

Convers Date or such to DateTime.

Convers Date or such to DateTime.
source

ToNativeclj/s≠protocol

to-nativeclj/s

(to-native x)

Convers to native Date object (java.util.Date or js/Date).

Convers to native Date object (java.util.Date or js/Date).
source

ToStringclj/s≠protocol

-to-stringclj/s

(-to-string x)

Converts object to good date string representation

Converts object to good date string representation
source

weeksclj/s

(weeks)
(weeks n)
source

with-zoneclj/s

(with-zone d timezone-id)
source

yearsclj/s

(years)
(years n)
source

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

× close