(to-vector t {:keys [timezone] :as opts} ks)converts an instant to an array representation (to-vector 0 {:timezone "GMT"} :all) => [1970 1 1 0 0 0 0]
(to-vector (Date. 0) {:timezone "GMT"} :day) => [1970 1 1]
(to-vector (common/calendar (Date. 0) (TimeZone/getTimeZone "EST")) {} [:month :day :year]) => [12 31 1969]
(to-vector (common/calendar (Date. 0) (TimeZone/getTimeZone "EST")) {:timezone "GMT"} [:month :day :year]) => [1 1 1970]
converts an instant to an array representation
(to-vector 0 {:timezone "GMT"} :all)
=> [1970 1 1 0 0 0 0]
(to-vector (Date. 0) {:timezone "GMT"} :day)
=> [1970 1 1]
(to-vector (common/calendar (Date. 0)
(TimeZone/getTimeZone "EST"))
{}
[:month :day :year])
=> [12 31 1969]
(to-vector (common/calendar (Date. 0)
(TimeZone/getTimeZone "EST"))
{:timezone "GMT"}
[:month :day :year])
=> [1 1 1970]cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |