(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |