(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.
(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.
(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
(to-date obj)
Convert obj
to a Java Date instance.
Convert `obj` to a Java Date instance.
(to-epoch obj)
Convert obj
to Unix epoch.
Convert `obj` to Unix epoch.
(to-local-date obj)
Convert obj
to a org.joda.time.LocalDate instance
Convert `obj` to a org.joda.time.LocalDate instance
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close