Liking cljdoc? Tell your friends :D

java-time.amount


days

(days v__3265__auto__)
source

duration

(duration)
(duration arg_1_3218)
(duration arg_1_3219 arg_2_3220)

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?

(duration? v__2344__auto__)

True if an instance of Duration.

True if an instance of Duration.
sourceraw docstring

hours

(hours v__3244__auto__)

Duration of a specified number of hours.

Duration of a specified number of hours.
sourceraw docstring

joda-period->duration

(joda-period->duration p)
source

joda-period->period

(joda-period->period p)
source

micros

(micros micros)

Duration of a specified number of microseconds.

Duration of a specified number of microseconds.
sourceraw docstring

millis

(millis v__3244__auto__)

Duration of a specified number of millis.

Duration of a specified number of millis.
sourceraw docstring

minutes

(minutes v__3244__auto__)

Duration of a specified number of minutes.

Duration of a specified number of minutes.
sourceraw docstring

months

(months v__3265__auto__)
source

nanos

(nanos v__3244__auto__)

Duration of a specified number of nanos.

Duration of a specified number of nanos.
sourceraw docstring

period

(period)
(period arg_1_3278)
(period arg_1_3279 arg_2_3280)
(period arg_1_3281 arg_2_3282 arg_3_3283)

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?

(period? v__2344__auto__)

True if an instance of Period.

True if an instance of Period.
sourceraw docstring

seconds

(seconds v__3244__auto__)

Duration of a specified number of seconds.

Duration of a specified number of seconds.
sourceraw docstring

standard-days

(standard-days v__3244__auto__)

Duration of a specified number of days.

Duration of a specified number of days.
sourceraw docstring

weeks

(weeks v__3265__auto__)
source

years

(years v__3265__auto__)
source

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

× close