Liking cljdoc? Tell your friends :D

circle.util.time


custom-formattersclj


destructclj

(destruct dt)

Returns a vector, the parts of the time, that can be applied to the date-time constructor

Returns a vector, the parts of the time, that can be applied to the date-time constructor
raw docstring

durationclj

(duration dt-a dt-b)

Returns the duration between two datetimes

Returns the duration between two datetimes
raw docstring

duration->millisclj

(duration->millis d)

duration-millisclj

(duration-millis d)

duration<clj

(duration< d p)

duration>clj

(duration> d p)

True if this duration is longer than Period p

True if this duration is longer than Period p
raw docstring

from-epoch-millisclj

(from-epoch-millis millis)

Given a number of millis since the epoch, return a datetime

Given a number of millis since the epoch, return a datetime
raw docstring

from-nowclj

(from-now period)

Takes a period, returns the interval starting from now

Takes a period, returns the interval starting from now
raw docstring

interval->durationclj

(interval->duration i)

interval->millisclj

(interval->millis interval)

Takes a joda interval, returns a number of millis in the interval

Takes a joda interval, returns a number of millis in the interval
raw docstring

java-nowclj

(java-now)

Returns a java.util.Time for now

Returns a java.util.Time for now
raw docstring

maxclj

(max dt-a dt-b)

Returns the greater of the two datetimes

Returns the greater of the two datetimes
raw docstring

maybe-intervalclj

(maybe-interval dt-a dt-b)

Returns an interval, or nil when dt-b is before dt-a. Use when the two datetimes could be created by different machines and clock skew, or bugs, or races

Returns an interval, or nil when dt-b is before dt-a. Use when the two datetimes could be created by different machines and clock skew, or bugs, or races
raw docstring

parseclj

(parse s)
(parse fmt s)

Returns a DateTime instance (in the parsed timezone) time zone obtained by parsing the given string according to the given formatter. This function is a copy of clj-time.parse/parse, except that it uses WithOffsetParsed

Returns a DateTime instance (in the parsed timezone) time zone obtained by parsing the
given string according to the given formatter. This function is a copy of clj-time.parse/parse, except that it uses WithOffsetParsed
raw docstring

period->intervalclj

(period->interval period)

period->millisclj

(period->millis p)

period->secsclj

(period->secs p)

period->strclj

(period->str period)

Takes a joda period, returns a human readable string

Takes a joda period, returns a human readable string
raw docstring

pretty-dayclj

(pretty-day date)

Given a DateTime, print 'today', 'yesterday', 'monday', 'last week' or 'may 25th'

Given a DateTime, print 'today', 'yesterday', 'monday', 'last week' or 'may 25th'
raw docstring

roundclj

(round dt period)

Truncate the datetime to the nearest period. period can be :year :month :date :hour :second

Truncate the datetime to the nearest period. period can be :year :month :date :hour :second
raw docstring

time-length-mapclj


to-epoch-millisclj

(to-epoch-millis dt)

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

× close