(duration o)
Constructs a Duration out of a number, interval, string, other duration or a map containing:
(duration 1000) => #<Duration PT1S>
(duration (interval 0 1000)) => #<Duration PT1S>
(duration "PT1S") => #<Duration PT1S>
(duration (duration 1000)) => #<Duration PT1S>
(duration {:start 0, :end 1000}) => #<Duration PT1S>
(duration {:start 0, :period (seconds 1)}) => #<Duration PT1S>
(duration {:end 0, :period (seconds 1)}) => #<Duration PT1S>
Constructs a Duration out of a number, interval, string, other duration or a map containing: - start and end instants - start instant and a period - end instant and a period (duration 1000) => #<Duration PT1S> (duration (interval 0 1000)) => #<Duration PT1S> (duration "PT1S") => #<Duration PT1S> (duration (duration 1000)) => #<Duration PT1S> (duration {:start 0, :end 1000}) => #<Duration PT1S> (duration {:start 0, :period (seconds 1)}) => #<Duration PT1S> (duration {:end 0, :period (seconds 1)}) => #<Duration PT1S>
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close