Use this namespace to format dates and datetimes for user.
Use this namespace to format dates and datetimes for user.
(add date x)
DEPRECATED: Use plus instead.
DEPRECATED: Use plus instead.
(after? a b)
Defined only for Date objects. Does nil check.
Defined only for Date objects. Does nil check.
(before? a b)
Defined only for Date objects. Does nil check.
Defined only for Date objects. Does nil check.
(closure-timezone timezone-id)
Builds Closure timeZoneData map from JodaTime timezone.
Builds Closure timeZoneData map from JodaTime timezone.
(date->str d)
DEPRECATED: Use format instead.
DEPRECATED: Use format instead.
(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)
(date-time->str d)
DEPRECATED: Use format instead.
DEPRECATED: Use format instead.
(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.
(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.
(equal? a b)
Defined only for Date objects. Does nil check.
Defined only for Date objects. Does nil check.
(initialize-timezone! timezone-id)
Initializes given timezone for ClojureScript use.
Initializes given timezone for ClojureScript use.
(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.
(-to-date x)
Convers DateTime or such to Date.
Convers DateTime or such to Date.
(-to-date-time x)
Convers Date or such to DateTime.
Convers Date or such to DateTime.
(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).
(-to-string x)
Converts object to good date string representation
Converts object to good date string representation
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close