Liking cljdoc? Tell your friends :D

cljs-time.local

Functions for working with local time without having to shift to/from utc, the preferred time zone of clj-time.core. Get the current local time with (local-now). (to-local-date-time obj) returns a local date-time instance retaining the time fields. The following all return 1986-10-14 04:03:27.246 with the local time zone. (to-local-date-time (clj-time.core/date-time 1986 10 14 4 3 27 246)) (to-local-date-time "1986-10-14T04:03:27.246") (to-local-date-time "1986-10-14T04:03:27.246Z") The dynamic var local-formatters contains a map of local formatters for parsing and printing. It is initialized with all the formatters in clj-time.format localized. to-local-date-time for strings uses local-formatters to parse. (format-local-time (local-now) :basic-date-time) formats an obj using a formatter in local-formatters corresponding to the format-key passed in.

Functions for working with local time without having to shift
to/from utc, the preferred time zone of clj-time.core.
Get the current local time with (local-now).
(to-local-date-time obj) returns a local date-time instance
retaining the time fields.
The following all return 1986-10-14 04:03:27.246 with the
local time zone.
(to-local-date-time (clj-time.core/date-time 1986 10 14 4 3 27 246))
(to-local-date-time "1986-10-14T04:03:27.246")
(to-local-date-time "1986-10-14T04:03:27.246Z")
The dynamic var *local-formatters* contains a map of local formatters
for parsing and printing. It is initialized with all the formatters in
clj-time.format localized.
to-local-date-time for strings uses *local-formatters* to parse.
(format-local-time (local-now) :basic-date-time) formats an obj using
a formatter in *local-formatters* corresponding to the format-key
passed in.
raw docstring

*local-formatters*cljs

Map of local formatters for parsing and printing.

Map of local formatters for parsing and printing.
sourceraw docstring

format-local-timecljs

(format-local-time obj format-key)

Format obj as local time using the local formatter corresponding to format-key.

Format obj as local time using the local formatter corresponding
to format-key.
sourceraw docstring

ILocalCoercecljsprotocol

to-local-date-timecljs

(to-local-date-time obj)

convert obj to a local goog.date DateTime instance retaining time fields.

convert `obj` to a local goog.date
DateTime instance retaining time fields.
source

local-nowcljs

(local-now)

Returns a DateTime for the current instant in the default time zone.

Returns a DateTime for the current instant in the default time zone.
sourceraw docstring

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

× close