Liking cljdoc? Tell your friends :D

java-time.amount


daysclj

(days v__3409__auto__)
source

durationclj

(duration)
(duration arg_1_3362)
(duration arg_1_3363 arg_2_3364)

Creates a duration - a temporal entity representing standard days, hours, minutes, millis, micros and nanos. The duration itself contains only seconds and nanos as properties.

Given one argument will

  • interpret as millis if a number
  • try to parse from the standard format if a string
  • extract supported units from another TemporalAmount
  • convert from a Joda Period/Duration

Given two arguments will

  • get a duration between two Temporals
  • get a duration of a specified unit, e.g. (duration 100 :seconds)
Creates a duration - a temporal entity representing standard days, hours,
minutes, millis, micros and nanos. The duration itself contains only seconds
and nanos as properties.

Given one argument will
  * interpret as millis if a number
  * try to parse from the standard format if a string
  * extract supported units from another `TemporalAmount`
  * convert from a Joda Period/Duration

Given two arguments will
  * get a duration between two `Temporal`s
  * get a duration of a specified unit, e.g. `(duration 100 :seconds)`
sourceraw docstring

duration?clj

(duration? v__2432__auto__)

True if an instance of Duration.

True if an instance of Duration.
sourceraw docstring

hoursclj

(hours v__3388__auto__)

Duration of a specified number of hours.

Duration of a specified number of hours.
sourceraw docstring

joda-period->durationclj

(joda-period->duration p)
source

joda-period->periodclj

(joda-period->period p)
source

microsclj

(micros micros)

Duration of a specified number of microseconds.

Duration of a specified number of microseconds.
sourceraw docstring

millisclj

(millis v__3388__auto__)

Duration of a specified number of millis.

Duration of a specified number of millis.
sourceraw docstring

minutesclj

(minutes v__3388__auto__)

Duration of a specified number of minutes.

Duration of a specified number of minutes.
sourceraw docstring

monthsclj

(months v__3409__auto__)
source

nanosclj

(nanos v__3388__auto__)

Duration of a specified number of nanos.

Duration of a specified number of nanos.
sourceraw docstring

periodclj

(period)
(period arg_1_3422)
(period arg_1_3423 arg_2_3424)
(period arg_1_3425 arg_2_3426 arg_3_3427)

Creates a period - a temporal entity consisting of years, months and days.

Given one argument will

  • interpret as years if a number
  • try to parse from the standard format if a string
  • extract supported units from another TemporalAmount
  • convert from a Joda Period

Given two arguments will

  • get a period of a specified unit, e.g. (period 10 :months)
  • get a period between two temporals by converting them to local dates
  • get a period of a specified number of years and months

Given three arguments will create a year/month/day period.

Creates a period - a temporal entity consisting of years, months and days.

Given one argument will
  * interpret as years if a number
  * try to parse from the standard format if a string
  * extract supported units from another `TemporalAmount`
  * convert from a Joda Period

Given two arguments will
  * get a period of a specified unit, e.g. `(period 10 :months)`
  * get a period between two temporals by converting them to local dates
  * get a period of a specified number of years and months

Given three arguments will create a year/month/day period.
sourceraw docstring

period?clj

(period? v__2432__auto__)

True if an instance of Period.

True if an instance of Period.
sourceraw docstring

secondsclj

(seconds v__3388__auto__)

Duration of a specified number of seconds.

Duration of a specified number of seconds.
sourceraw docstring

standard-daysclj

(standard-days v__3388__auto__)

Duration of a specified number of days.

Duration of a specified number of days.
sourceraw docstring

weeksclj

(weeks v__3409__auto__)
source

yearsclj

(years v__3409__auto__)
source

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

× close