Liking cljdoc? Tell your friends :D

tick.core


*clock*clj/s

source

<<clj/s

(<< t n-or-d)
source

>>clj/s

(>> t n-or-d)
source

advanceclj/s

(advance clk)
(advance clk dur)
source

agoclj/s

(ago dur)
source

atomclj/s

(atom)
(atom clk)
source

AtomicClockcljs

source

coincident?clj/s

(coincident? t event)

Does the span of time contain the given event? If the given event is itself a span, then t must wholly contain the beginning and end of the event.

Does the span of time contain the given event? If the given event
is itself a span, then t must wholly contain the beginning and end
of the event.
sourceraw docstring

compare-and-set!clj/s

(compare-and-set! at oldval newval)
source

current-clockclj/s

(current-clock)
source

current-zoneclj/s

(current-zone)

Return the current zone, which can be overridden by the clock dynamic var

Return the current zone, which can be overridden by the *clock* dynamic var
sourceraw docstring

day-of-week-in-monthclj/s

(day-of-week-in-month ordinal dow)
(day-of-week-in-month t ordinal dow)
source

decclj/s

(dec t)
source

durationclj/s

(duration x)
source

epochclj/s

(epoch)
source

field-mapclj/s

source

fieldsclj/s

(fields t)
source

FieldsLookupcljs

source

first-day-of-monthclj/s

(first-day-of-month)
(first-day-of-month t)
source

first-day-of-next-monthclj/s

(first-day-of-next-month)
(first-day-of-next-month t)
source

first-day-of-next-yearclj/s

(first-day-of-next-year)
(first-day-of-next-year t)
source

first-day-of-yearclj/s

(first-day-of-year)
(first-day-of-year t)
source

first-in-monthclj/s

(first-in-month dow)
(first-in-month t dow)
source

greaterclj/s

(greater x y)
source

henceclj/s

(hence dur)
source

IBetweenclj/s≠protocol

betweenclj/s

(between v1 v2)

Return the duration (or period) between two times

Return the duration (or period) between two times
source

IClockclj/s≠protocol

clockclj/s

(clock _)

Make a clock

Make a clock
source

IConversionclj/s≠protocol

instclj/s

(inst _)

Make a java.util.Date instance.

Make a java.util.Date instance.

zoned-date-timeclj/s

(zoned-date-time _)

Make a java.time.ZonedDateTime instance.

Make a java.time.ZonedDateTime instance.

instantclj/s

(instant _)

Make a java.time.Instant instance.

Make a java.time.Instant instance.

offset-date-timeclj/s

(offset-date-time _)

Make a java.time.OffsetDateTime instance.

Make a java.time.OffsetDateTime instance.
source

IDivisibleclj/s≠protocol

divideclj/s

(divide t divisor)

Divide time

Divide time
source

IDivisibleDurationclj/s≠protocol

divide-durationclj/s

(divide-duration divisor duration)

Divide a duration

Divide a duration
source

IExtractionclj/s≠protocol

minuteclj/s

(minute _)

Return the minute field of the given time

Return the minute field of the given time

dateclj/s

(date _)

Make a java.time.LocalDate instance.

Make a java.time.LocalDate instance.

hourclj/s

(hour _)

Return the hour field of the given time

Return the hour field of the given time

longclj/s

(long _)

Return value as long

Return value as long

date-timeclj/s

(date-time _)

Make a java.time.LocalDateTime instance.

Make a java.time.LocalDateTime instance.

zone-offsetclj/s

(zone-offset _)

Make a java.time.ZoneOffset instance.

Make a java.time.ZoneOffset instance.

intclj/s

(int _)

Return value as integer

Return value as integer

secondclj/s

(second _)

Return the second field of the given time

Return the second field of the given time

zoneclj/s

(zone _)

Make a java.time.ZoneId instance.

Make a java.time.ZoneId instance.

day-of-weekclj/s

(day-of-week _)

Make a java.time.DayOfWeek instance.

Make a java.time.DayOfWeek instance.

timeclj/s

(time _)

Make a java.time.LocalTime instance.

Make a java.time.LocalTime instance.

monthclj/s

(month _)

Make a java.time.Month instance.

Make a java.time.Month instance.

nanosecondclj/s

(nanosecond _)

Return the millisecond field of the given time

Return the millisecond field of the given time

day-of-monthclj/s

(day-of-month _)

Return value of the day in the month as an integer.

Return value of the day in the month as an integer.

yearclj/s

(year _)

Make a java.time.Year instance.

Make a java.time.Year instance.

millisecondclj/s

(millisecond _)

Return the millisecond field of the given time

Return the millisecond field of the given time

year-monthclj/s

(year-month _)

Make a java.time.YearMonth instance.

Make a java.time.YearMonth instance.

microsecondclj/s

(microsecond _)

Return the millisecond field of the given time

Return the millisecond field of the given time
source

ILocalTimeclj/s≠protocol

local?clj/s

(local? t)

Is the time a java.time.LocalTime or java.time.LocalDateTime?

Is the time a java.time.LocalTime or java.time.LocalDateTime?
source

incclj/s

(inc t)
source

IParseableclj/s≠protocol

parseclj/s

(parse _)

Parse to most applicable instance.

Parse to most applicable instance.
source

ITimeArithmeticclj/s≠protocol

+clj/s

(+ t d)

Add to time

Add to time

-clj/s

(- t d)

Subtract from time, or negate

Subtract from time, or negate
source

ITimeComparisonclj/s≠protocol

<clj/s

(< x y)

Is x before y?

Is x before y?

<=clj/s

(<= x y)

Is x before or at the same time as y?

Is x before or at the same time as y?

>clj/s

(> x y)

Is x after y?

Is x after y?

>=clj/s

(>= x y)

Is x after or at the same time as y?

Is x after or at the same time as y?
source

ITimeLengthclj/s≠protocol

minutesclj/s

(minutes _)

Return the given quantity in minutes.

Return the given quantity in minutes.

millisclj/s

(millis _)

Return the given quantity in milliseconds.

Return the given quantity in milliseconds.

nanosclj/s

(nanos _)

Return the given quantity in nanoseconds.

Return the given quantity in nanoseconds.

monthsclj/s

(months _)

Return the given quantity in months.

Return the given quantity in months.

daysclj/s

(days _)

Return the given quantity in days.

Return the given quantity in days.

secondsclj/s

(seconds _)

Return the given quantity in seconds.

Return the given quantity in seconds.

microsclj/s

(micros _)

Return the given quantity in microseconds.

Return the given quantity in microseconds.

hoursclj/s

(hours _)

Return the given quantity in hours.

Return the given quantity in hours.

yearsclj/s

(years _)

Return the given quantity in years.

Return the given quantity in years.
source

ITimeRangeableclj/s≠protocol

rangeclj/s

(range from)
(range from to)
(range from to step)

Returns a lazy seq of times from start (inclusive) to end (exclusive, nil means forever), by step, where start defaults to 0, step to 1, and end to infinity.

Returns a lazy seq of times from start (inclusive) to end (exclusive, nil means forever), by step, where start defaults to 0, step to 1, and end to infinity.
source

ITimeReifyclj/s≠protocol

inclj/s

(in dt zone)

Set a date-time to be in a time-zone

Set a date-time to be in a time-zone

offset-byclj/s

(offset-by dt amount)

Set a date-time to be offset by an amount

Set a date-time to be offset by an amount

atclj/s

(at date time)

Set date to be AT a time

Set date to be AT a time

onclj/s

(on time date)

Set time be ON a date

Set time be ON a date
source

ITimeShiftclj/s≠protocol

backward-durationclj/s

(backward-duration _ d)

Decrement time

Decrement time

backward-numberclj/s

(backward-number _ n)

Decrement time

Decrement time

forward-durationclj/s

(forward-duration _ d)

Increment time

Increment time

forward-numberclj/s

(forward-number _ n)

Increment time

Increment time
source

ITimeSpanclj/s≠protocol

endclj/s

(end _)

Return the end of a span of time

Return the end of a span of time

beginningclj/s

(beginning _)

Return the beginning of a span of time

Return the beginning of a span of time
source

last-day-of-monthclj/s

(last-day-of-month)
(last-day-of-month t)
source

last-day-of-yearclj/s

(last-day-of-year)
(last-day-of-year t)
source

last-in-monthclj/s

(last-in-month dow)
(last-in-month t dow)
source

lesserclj/s

(lesser x y)
source

maxclj/s

(max arg & args)
source

midnightclj/s

(midnight)
(midnight date)
source

midnight?clj/s

(midnight? t)
source

minclj/s

(min arg & args)
source

MinMaxclj/s≠protocol

max-of-typeclj/s

(max-of-type _)

Return the max

Return the max

min-of-typeclj/s

(min-of-type _)

Return the min

Return the min
source

minus_clj/s

(minus_ d)
(minus_ t d)
source

negatedclj/s

(negated d)

Return the duration as a negative duration

Return the duration as a negative duration
sourceraw docstring

new-dateclj/s

(new-date)
(new-date epoch-day)
(new-date year day-of-year)
(new-date year month day-of-month)
source

new-durationclj/s

(new-duration n u)
source

new-periodclj/s

(new-period n u)
source

new-timeclj/s

(new-time)
(new-time hour minute)
(new-time hour minute second)
(new-time hour minute second nano)
source

nextclj/s

(next dow)
(next t dow)
source

next-or-sameclj/s

(next-or-same dow)
(next-or-same t dow)
source

noonclj/s

(noon)
(noon date)
source

nowclj/s

(now)
source

parse-dayclj/s

(parse-day input)
source

parse-intclj/s

(parse-int x)
source

parse-monthclj/s

(parse-month input)
source

previousclj/s

(previous dow)
(previous t dow)
source

previous-or-sameclj/s

(previous-or-same dow)
(previous-or-same t dow)
source

reset!clj/s

(reset! at newval)
source

reset-vals!clj/s

(reset-vals! at newval)
source

reverse-unit-mapclj/s

source

swap!clj/s

(swap! at f & args)
source

swap-vals!clj/s

(swap-vals! at f & args)
source

todayclj/s

(today)
source

tomorrowclj/s

(tomorrow)
source

truncateclj/s

(truncate x u)
source

unit-mapclj/s

source

unitsclj/s

(units x)
source

withclj/s

(with t adj)
(with t fld new-value)

Adjust a temporal with an adjuster or field

Adjust a temporal with an adjuster or field
sourceraw docstring

yesterdayclj/s

(yesterday)
source

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

× close