(date-string->long s__4830__auto__)
(date-string->long s__4830__auto__ options__4829__auto__)
Convert date string to epoch time in millis. If pattern contains timezone info, offset should be consistant with the input string.
Convert date string to epoch time in millis. If pattern contains timezone info, offset should be consistant with the input string.
(datetime-string->long s__4830__auto__)
(datetime-string->long s__4830__auto__ options__4829__auto__)
Convert datetime string to epoch time in millis. If pattern contains timezone info, offset should be consistant with the input string.
Convert datetime string to epoch time in millis. If pattern contains timezone info, offset should be consistant with the input string.
(def-string-long-conversion time-type default-pattern)
(from-sql-time sql-date)
(long->date-string ts__4828__auto__)
(long->date-string ts__4828__auto__ options__4829__auto__)
Convert epoch time in millis to date string
Convert epoch time in millis to date string
(long->datetime-string ts__4828__auto__)
(long->datetime-string ts__4828__auto__ options__4829__auto__)
Convert epoch time in millis to datetime string
Convert epoch time in millis to datetime string
(long->string ts {:keys [pattern offset]})
Convert epoch millis to the string representation with the
pattern
in the timezone offset
Convert epoch millis to the string representation with the `pattern` in the timezone `offset`
(make-formatter {:keys [pattern offset]})
Make a DateTimeFormatter instance. Default timezone offset is +8
Make a DateTimeFormatter instance. Default timezone offset is +8
(now)
Returns an Instant object representing current time
Returns an Instant object representing current time
(now-in-millis)
(now-in-secs)
(start-of-day)
(start-of-day ts)
(start-of-day ts {:keys [zone] :or {zone bj-zone}})
Calculate epoch millis at the start of the next day. If no zone
is provided, bj-zone
is assumed.
Calculate epoch millis at the start of the next day. If no `zone` is provided, `bj-zone` is assumed.
(start-of-next-day)
(start-of-next-day ts)
(start-of-next-day ts {:keys [zone] :or {zone bj-zone}})
Calculate epoch millis at the start of the day
Calculate epoch millis at the start of the day
(start-of-week)
(start-of-week ts)
(start-of-week ts
{:keys [zone locale week-start]
:or {zone bj-zone locale Locale/US week-start 1}})
Calculate epoch millis at the start of the week.
Calculate epoch millis at the start of the week.
(string->long s {:keys [pattern offset]})
Convert string to epoch millis.
s
.Convert string to epoch millis. - If pattern does not contain timezone, offset must be provided. - If pattern contains timezone info(Z/z/X), offset must be consistant with the offset sepcified in the input string `s`. - If no hour of day is specified, 0-clock is assumed.
(to-sql-time ts)
(zone-by-offset offset)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close