Liking cljdoc? Tell your friends :D

io.randomseed.utils.time

Random utilities, date and time functions.

Random utilities, date and time functions.
raw docstring

add-secondclj

(add-second t)
source

date-time-rpatclj

source

daysclj

(days v)
(days v default)
source

days-agoclj

(days-ago n)

Returns a time of days ago from now.

Returns a time of days ago from now.
sourceraw docstring

duration->timeclj

(duration->time duration)
(duration->time duration t)
source

duration-mapclj

source

duration-or-timeclj

(duration-or-time v)
(duration-or-time v t)
source

duration?clj

(duration? v)
source

hoursclj

(hours v)
(hours v default)
source

instant-utcclj

(instant-utc)
(instant-utc v)
source

local-utcclj

(local-utc t)
source

local-utc-deltaclj

(local-utc-delta)
source

millisclj

(millis v)
(millis v default)
source

millisecondsclj

source

minutesclj

(minutes v)
(minutes v default)
source

neg-duration?clj

(neg-duration? d)
source

one-secondclj

source

parse-dtclj

(parse-dt s)
source

parse-dt-secsclj

(parse-dt-secs s)
source

parse-dur-minclj

(parse-dur-min v)
source

parse-durationclj

(parse-duration d)
(parse-duration d default-unit)
(parse-duration d default-unit & pairs)

Parses time duration expressed as value and unit. For a single argument being a single value it is treated as minutes. For a single value being a collection the function is applied to consecutive values. For the given d and default-unit the value of d is parsed as a long number and the unit is converted into a keyword and should be one of the: :day, :hour, :minute, :second, :millisecond, :microsecond or :nanosecond (including their corresponding plural forms). When multiple arguments are given they are parsed in pairs and added to create a single duration.

Parses time duration expressed as value and unit. For a single argument being a
single value it is treated as minutes. For a single value being a collection the
function is applied to consecutive values. For the given `d` and `default-unit` the
value of `d` is parsed as a long number and the unit is converted into a keyword
and should be one of the: `:day`, `:hour`, `:minute`, `:second`, `:millisecond`,
`:microsecond` or `:nanosecond` (including their corresponding plural forms). When
multiple arguments are given they are parsed in pairs and added to create a single
duration.
sourceraw docstring

parse-tsclj

(parse-ts s)
source

parse-ts-secsclj

(parse-ts-secs s)
source

pos-duration?clj

(pos-duration? d)
source

safe-parse-dtclj

(safe-parse-dt s)
source

safe-parse-dt-secsclj

(safe-parse-dt-secs s)
source

safe-parse-tsclj

(safe-parse-ts s)
source

safe-parse-ts-secsclj

(safe-parse-ts-secs s)
source

secondsclj

(seconds v)
(seconds v default)
source

sub-secondclj

(sub-second t)
source

time->durationclj

(time->duration t)
(time->duration from-time to-time)
source

time-unitclj

(time-unit v default-unit)
(time-unit v default-unit extraction-fn)
source

timeish?clj

(timeish? v)
source

timestampclj

(timestamp)
(timestamp t)
source

timestamp-secsclj

(timestamp-secs)
(timestamp-secs t)
source

try-timescljmacro

(try-times & body)

Executes body. If an exception is thrown, will retry. At most n retries are done. If still some exception is thrown it is bubbled upwards in the call chain.

Executes body. If an exception is thrown, will retry. At most n retries are done. If
still some exception is thrown it is bubbled upwards in the call chain.
sourceraw docstring

try-times*clj

(try-times* times thunk)
source

tstamp-patclj

source

unit-to-efnclj

source

utcclj

source

utc-instantclj

(utc-instant)
(utc-instant v)
source

utc-localclj

(utc-local t)
source

zero-duration?clj

(zero-duration? d)
source

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

× close