(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
(get-delay delay)
Return delay before scheduler should start
Return delay before scheduler should start
(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)!!!
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close