Provides time utilities for use in check definitions and the maintenance pipeline.
Provides time utilities for use in check definitions and the maintenance pipeline.
(duration amount unit)
Constructs an object representing a duration of time.
This object is used to specify, for example, the time to re-evaluation and timeout on a check or the interval passed to a maintenance pipeline.
Takes an amount and a unit:
amount
is the length of the duration, measured in terms of the unitunit
is one of :nanos
, :micros
, :millis
, :seconds
, :minutes
,
:hours
, :half-days
, :days
, :weeks
, :months
, :years
,
:decades
, :centuries
, :millennia
, :eras
or :forever
Note: internally, this constructs a java.time.Duration
and is merely a
convenience function. As such, a java.time.Duration
can be passed directly
wherever this function would be used.
Constructs an object representing a duration of time. This object is used to specify, for example, the time to re-evaluation and timeout on a check or the interval passed to a maintenance pipeline. Takes an amount and a unit: - `amount` is the length of the duration, measured in terms of the unit - `unit` is one of `:nanos`, `:micros`, `:millis`, `:seconds`, `:minutes`, `:hours`, `:half-days`, `:days`, `:weeks`, `:months`, `:years`, `:decades`, `:centuries`, `:millennia`, `:eras` or `:forever` Note: internally, this constructs a `java.time.Duration` and is merely a convenience function. As such, a `java.time.Duration` can be passed directly wherever this function would be used.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close