Liking cljdoc? Tell your friends :D

cljs-time.coerce


from-datecljs

(from-date date)

Returns a DateTime instance in the UTC time zone corresponding to the given Java Date object.

Returns a DateTime instance in the UTC time zone corresponding to the given
Java Date object.
sourceraw docstring

from-longcljs

(from-long millis)

Returns a DateTime instance in the UTC time zone corresponding to the given number of milliseconds after the Unix epoch.

Returns a DateTime instance in the UTC time zone corresponding to the given
number of milliseconds after the Unix epoch.
sourceraw docstring

from-stringcljs

(from-string s)

return DateTime instance from string using formatters in clj-time.format, returning first which parses

return DateTime instance from string using
formatters in clj-time.format, returning first
which parses
sourceraw docstring

ICoercecljsprotocol

to-date-timecljs

(to-date-time obj)
source

to-datecljs

(to-date obj)

Convert obj to a Java Date instance.

Convert `obj` to a Java Date instance.
sourceraw docstring

to-epochcljs

(to-epoch obj)

Convert obj to Unix epoch.

Convert `obj` to Unix epoch.
sourceraw docstring

to-local-datecljs

(to-local-date obj)

Convert obj to a org.joda.time.LocalDate instance

Convert `obj` to a org.joda.time.LocalDate instance
sourceraw docstring

to-longcljs

(to-long obj)

Convert obj to the number of milliseconds after the Unix epoch.

Convert `obj` to the number of milliseconds after the Unix epoch.
sourceraw docstring

to-stringcljs

(to-string obj)

Returns a string representation of obj in UTC time-zone using (ISODateTimeFormat/dateTime) date-time representation.

Returns a string representation of obj in UTC time-zone
using (ISODateTimeFormat/dateTime) date-time representation.
sourceraw docstring

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

× close