Liking cljdoc? Tell your friends :D

joda-time.instant


date-timeclj

(date-time)
(date-time o)
(date-time y m)
(date-time y m d)
(date-time y m d h)
(date-time y m d h mm)
(date-time y m d h mm s)
(date-time y m d h mm s mmm)

Constructs a DateTime out of:

  • another instant, a number of milliseconds or a partial date
  • a java (util/sql) Date/Timestamp or a Calendar
  • an ISO formatted string
  • a map with keys corresponding to the names of date-time field types and an (optional) chronology.
  • a map with keys partial representing any partial date and base representing a date-time to be used for fields missing in the partial (defaults to epoch).
  • different arities accepting a number of fields in order of Year, Month, Day, Hour, Minute, Second, Millis. The fields not specified will be defaulted to the minimum field value.

When called with no arguments produces a value of DateTime/now.

Constructs a DateTime out of:

* another instant, a number of milliseconds or a partial date
* a java (util/sql) Date/Timestamp or a Calendar
* an ISO formatted string
* a map with keys corresponding to the names of date-time field types
and an (optional) chronology.
* a map with keys `partial` representing any partial date and `base`
representing a date-time to be used for fields missing in the partial
(defaults to epoch).
* different arities accepting a number of fields in order of Year, Month,
Day, Hour, Minute, Second, Millis. The fields not specified will be defaulted
to the minimum field value.

When called with no arguments produces a value of `DateTime/now`.
raw docstring

in-zoneclj

(in-zone dt zone)

instantclj

(instant)
(instant o)

Constructs an Instant out of another instant, java date, calendar, number of millis or a formatted string:

(instant) => #<Instant ...now...>

(instant (java.util.Date.)) => #<Instant ...now...>

(instant 1000) => #<Instant 1970-01-01T00:00:01.000Z>

(j/instant "1970-01-01T00:00:01.000Z") => #<Instant 1970-01-01T00:00:01.000Z>

Constructs an Instant out of another instant, java date, calendar, number of
millis or a formatted string:

  (instant)
  => #<Instant ...now...>

  (instant (java.util.Date.))
  => #<Instant ...now...>

  (instant 1000)
  => #<Instant 1970-01-01T00:00:01.000Z>

  (j/instant "1970-01-01T00:00:01.000Z")
  => #<Instant 1970-01-01T00:00:01.000Z>
raw docstring

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

× close