(duration x)
Turns a number/string to a duration if possible.
Will take a string in the form of:
units supported are:
Numbers will be assumed to be milliseconds
Turns a number/string to a duration if possible. Will take a string in the form of: - 1ms - 1h30s units supported are: - ms milliseconds - s seconds - m minutes - h hours - d days - w weeks - M months - Y years Numbers will be assumed to be milliseconds
(to-ms unit x)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close