Liking cljdoc? Tell your friends :D

eternity.scheduler.time


calculate-delayclj

(calculate-delay delay)

Return the number of miliseconds till nearest start-at time (can be 'mm' or 'hh:mm'). Depends on current time whether we need to adjust the hour/day

Return the number of miliseconds till
nearest start-at time (can be 'mm' or 'hh:mm').
Depends on current time whether we need to adjust the hour/day
sourceraw docstring

get-delayclj

(get-delay delay)

Return delay before scheduler should start

Return delay before scheduler should start
sourceraw docstring

to-intclj

(to-int s)
source

to-intervalclj

(to-interval t)

Convert string indicating time duration to time interval in ms (to-interval '1s') => 60 (to-interval '2m') => 120000 (to-interval '2h') => 3600000 Supports seconds (s), minutes (m), hours (h) and days (d). Cannot combine (e.g '1h1m' not allowed)!!!

Convert string indicating time duration
to time interval in ms
(to-interval '1s') => 60
(to-interval '2m') => 120000
(to-interval '2h') => 3600000
Supports seconds (s), minutes (m), hours (h) and days (d).
Cannot combine (e.g '1h1m' not allowed)!!!
sourceraw docstring

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

× close