Liking cljdoc? Tell your friends :D

exoscale.specs.time


day-msclj


durationclj

(duration x)

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

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
raw docstring

hour-msclj


minute-msclj


month-msclj


second-msclj


to-msclj

(to-ms unit x)

week-msclj


year-msclj

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

× close