(days o__1699__auto__)
Constructs a Days period representing the given number of days. Given a time entity tries to extract the number of days. Given another period, extracts its days part.
Constructs a Days period representing the given number of days. Given a time entity tries to extract the number of days. Given another period, extracts its days part.
(hours o__1699__auto__)
Constructs a Hours period representing the given number of hours. Given a time entity tries to extract the number of hours. Given another period, extracts its hours part.
Constructs a Hours period representing the given number of hours. Given a time entity tries to extract the number of hours. Given another period, extracts its hours part.
(millis o)
Constructs a Period representing the given number of milliseconds. Given a time entity tries to extract the number of millis. Given another period, extracts it's millis part.
Constructs a Period representing the given number of milliseconds. Given a time entity tries to extract the number of millis. Given another period, extracts it's millis part.
(minutes o__1699__auto__)
Constructs a Minutes period representing the given number of minutes. Given a time entity tries to extract the number of minutes. Given another period, extracts its minutes part.
Constructs a Minutes period representing the given number of minutes. Given a time entity tries to extract the number of minutes. Given another period, extracts its minutes part.
(months o__1699__auto__)
Constructs a Months period representing the given number of months. Given a time entity tries to extract the number of months. Given another period, extracts its months part.
Constructs a Months period representing the given number of months. Given a time entity tries to extract the number of months. Given another period, extracts its months part.
(period)
(period o)
(period o t)
Constructs a Period. Takes a number, duration, string, interval, another period or a map.
(period {:years 2, :months 3}) => #<Period P1Y3M>
(period {:start 0, :end 1000}) => #<Period PT1S>
(period {:start 0, :duration 1000}) => #<Period PT1S>
(period {:duration 1000, :end 0}) => #<Period PT1S>
(period 1000) => #<Period PT1S>
(period "PT1S") => #<Period PT1S>
(period (duration 1000)) => #<Period PT1S>
(period (interval 0 1000)) => #<Period PT1S>
Accepts two arguments where the second one is the desired type of the period
(either an instance of PeriodType
or a vector of duration type keywords,
e.g. [:seconds, :millis]
):
(period {:start 0, :duration (* 1000 1000 1000)} [:days]) => #<Period P11D>
(period {:start 0, :duration (* 1000 1000 1000)} (period-type :weeks)) => #<Period P1W>)
Constructs a Period. Takes a number, duration, string, interval, another period or a map. (period {:years 2, :months 3}) => #<Period P1Y3M> (period {:start 0, :end 1000}) => #<Period PT1S> (period {:start 0, :duration 1000}) => #<Period PT1S> (period {:duration 1000, :end 0}) => #<Period PT1S> (period 1000) => #<Period PT1S> (period "PT1S") => #<Period PT1S> (period (duration 1000)) => #<Period PT1S> (period (interval 0 1000)) => #<Period PT1S> Accepts two arguments where the second one is the desired type of the period (either an instance of `PeriodType` or a vector of duration type keywords, e.g. `[:seconds, :millis]`): (period {:start 0, :duration (* 1000 1000 1000)} [:days]) => #<Period P11D> (period {:start 0, :duration (* 1000 1000 1000)} (period-type :weeks)) => #<Period P1W>)
(period-type t & types)
Either gets the period type of the given ReadablePeriod
or constructs a
PeriodType
out of the provided duration types.
(period-type :years :months :weeks :days :hours :minutes :seconds :millis) => #<PeriodType PeriodType[Standard]>
(period-type (years 1)) => #<PeriodType PeriodType[Years]>
Either gets the period type of the given `ReadablePeriod` or constructs a `PeriodType` out of the provided duration types. (period-type :years :months :weeks :days :hours :minutes :seconds :millis) => #<PeriodType PeriodType[Standard]> (period-type (years 1)) => #<PeriodType PeriodType[Years]>
(period-type->seq period-type)
Constructs a sequence of duration type names out of a PeriodType.
(period-type->seq standard-period-type) => [:years :months :weeks :days :hours :minutes :seconds :millis]
(period-type->seq (period-type (years 1)) => [:years]
Constructs a sequence of duration type names out of a PeriodType. (period-type->seq standard-period-type) => [:years :months :weeks :days :hours :minutes :seconds :millis] (period-type->seq (period-type (years 1)) => [:years]
(seconds o__1699__auto__)
Constructs a Seconds period representing the given number of seconds. Given a time entity tries to extract the number of seconds. Given another period, extracts its seconds part.
Constructs a Seconds period representing the given number of seconds. Given a time entity tries to extract the number of seconds. Given another period, extracts its seconds part.
Standard period type. Alias to PeriodType/standard
.
Standard period type. Alias to `PeriodType/standard`.
(weeks o__1699__auto__)
Constructs a Weeks period representing the given number of weeks. Given a time entity tries to extract the number of weeks. Given another period, extracts its weeks part.
Constructs a Weeks period representing the given number of weeks. Given a time entity tries to extract the number of weeks. Given another period, extracts its weeks part.
(years o__1699__auto__)
Constructs a Years period representing the given number of years. Given a time entity tries to extract the number of years. Given another period, extracts its years part.
Constructs a Years period representing the given number of years. Given a time entity tries to extract the number of years. Given another period, extracts its years part.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close