Liking cljdoc? Tell your friends :D

sparrows.time


bj-zoneclj


date-string->longclj

(date-string->long s__4104__auto__)
(date-string->long s__4104__auto__ options__4103__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.
raw docstring

date-string-patternclj


datetime-string->longclj

(datetime-string->long s__4104__auto__)
(datetime-string->long s__4104__auto__ options__4103__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.
raw docstring

datetime-string-patternclj


def-string-long-conversioncljmacro

(def-string-long-conversion time-type default-pattern)

from-sql-timeclj

(from-sql-time sql-date)

long->date-stringclj

(long->date-string ts__4102__auto__)
(long->date-string ts__4102__auto__ options__4103__auto__)

Convert epoch time in millis to date string

Convert epoch time in millis to date string 
raw docstring

long->datetime-stringclj

(long->datetime-string ts__4102__auto__)
(long->datetime-string ts__4102__auto__ options__4103__auto__)

Convert epoch time in millis to datetime string

Convert epoch time in millis to datetime string 
raw docstring

long->stringclj

(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`
raw docstring

make-formatterclj

(make-formatter {:keys [pattern offset]})

Make a DateTimeFormatter instance. Default timezone offset is +8

Make a DateTimeFormatter instance. Default timezone offset is +8
raw docstring

nowclj

(now)

Returns an Instant object representing current time

Returns an Instant object representing current time
raw docstring

now-in-millisclj

(now-in-millis)

now-in-nanosclj

(now-in-nanos)

now-in-secsclj

(now-in-secs)

start-of-dayclj

(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.
raw docstring

start-of-next-dayclj

(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
raw docstring

start-of-weekclj

(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.
raw docstring

string->longclj

(string->long s {:keys [pattern offset]})

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.
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.
raw docstring

to-sql-timeclj

(to-sql-time ts)

zone-by-offsetclj

(zone-by-offset offset)

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

× close