(calendar date timezone)
creates a calendar to be used by the base date classes (-> ^Calendar (calendar (Date. 0) (TimeZone/getTimeZone "GMT")) (.getTime)) => #inst "1970-01-01T00:00:00.000-00:00"
creates a calendar to be used by the base date classes (-> ^Calendar (calendar (Date. 0) (TimeZone/getTimeZone "GMT")) (.getTime)) => #inst "1970-01-01T00:00:00.000-00:00"
(default-timezone)
(default-timezone tz)
accesses the default timezone as a string
(default-timezone) ;; getter => "Asia/Ho_Chi_Minh"
(default-timezone "GMT") ;; setter => "GMT"
accesses the default timezone as a string (default-timezone) ;; getter => "Asia/Ho_Chi_Minh" (default-timezone "GMT") ;; setter => "GMT"
(default-type)
(default-type cls)
accesses the default type for datetime
(default-type) ;; getter => clojure.lang.PersistentArrayMap
(default-type Long) ;; setter => java.lang.Long
accesses the default type for datetime (default-type) ;; getter => clojure.lang.PersistentArrayMap (default-type Long) ;; setter => java.lang.Long
(local-timezone)
returns the current timezone as a string
(local-timezone) => "Asia/Ho_Chi_Minh"
returns the current timezone as a string (local-timezone) => "Asia/Ho_Chi_Minh"
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close