Liking cljdoc? Tell your friends :D

exoscale.specs.time


day-msclj/s


durationclj/s

(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/s


minute-msclj/s


month-msclj/s


second-msclj/s


to-msclj/s

(to-ms unit x)

week-msclj/s


year-msclj/s

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

× close