Liking cljdoc? Tell your friends :D
Mostly clj/s.
Exceptions indicated.

dv.tick-util


+clj/s

(+ d offset)

Add thing without caring about type time-type? duration|period|offset => time-type?

Add thing without caring about type
time-type? duration|period|offset => time-type?
sourceraw docstring

->dateclj/s

(->date v)
source

->date-timeclj/s

(->date-time v)
source

->instclj/s

(->inst d)
source

->instantclj/s

(->instant d)
source

<clj/s

source

<=clj/s

source

>clj/s

source

>=clj/s

source

add-offsetclj/s

(add-offset d offset)
source

at-midnightclj/s

(at-midnight d)

Input: date or date-time return date-time at 00:00

Input: date or date-time return date-time at 00:00
sourceraw docstring

capitalized-monthclj/s

(capitalized-month date)
source

countdownclj/s

(countdown end-time)
source

Dateclj/s

source

dateclj/s

(date string)

Delegates to tick, return nil instead of throwing for invalid date strings

Delegates to tick, return nil instead of throwing for invalid date strings
sourceraw docstring

date-time?clj/s

(date-time? d)
source

date-times-betweenclj/s

(date-times-between start end)
source

date-times-in-monthclj/s

(date-times-in-month)
(date-times-in-month date)

Return seq of date-times for each day of the entire month of the passed in date, or of today.

Return seq of date-times for each day of the entire month of the passed in date, or of today.
sourceraw docstring

date-times-in-month-arrclj/s

(date-times-in-month-arr)
(date-times-in-month-arr date)

Return native array of dates for each day of the entire month of the passed in date, or of today.

Return native array of dates for each day of the entire month of the passed in date, or of today.
sourceraw docstring

date-type?clj/s

source

date?clj/s

(date? d)
source

dates-betweenclj/s

(dates-between start end)
source

dates-in-monthclj/s

(dates-in-month)
(dates-in-month date)

Return seq of dates for each day of the entire month of the passed in date, or of today.

Return seq of dates for each day of the entire month of the passed in date, or of today.
sourceraw docstring

dates-in-month-arrclj/s

(dates-in-month-arr)
(dates-in-month-arr date)

Return native array of dates for each day of the entire month of the passed in date, or of today.

Return native array of dates for each day of the entire month of the passed in date, or of today.
sourceraw docstring

DateTimeclj/s

source

day-of-week-fridayclj/s

source

day-of-week-intclj/s

(day-of-week-int d)
source

day-of-week-mondayclj/s

source

day-of-week-offsetsclj/s

source

day-of-week-saturdayclj/s

source

day-of-week-sundayclj/s

source

day-of-week-thursdayclj/s

source

day-of-week-tuesdayclj/s

source

day-of-week-wednesdayclj/s

source

day-of-week-with-offsetclj/s

(day-of-week-with-offset offset date)

Returns the zero-based index of the weekday, for a week started by the given offset. The offsets map to weekdays like so: 0: Monday 1: Sunday 2: Saturday 3: Friday 4: Thursday 5: Wednesday 6: Tuesday

Returns the zero-based index of the weekday, for a week started by the given offset.
 The offsets map to weekdays like so:
0: Monday
1: Sunday
2: Saturday
3: Friday
4: Thursday
5: Wednesday
6: Tuesday
sourceraw docstring

days-seqclj/s

source

days-this-yearclj/s

(days-this-year)
(days-this-year year)
source

days-this-year-instclj/s

(days-this-year-inst)
source

default-formatclj/s

source

durationclj/s

(duration num units & args)
source

duration->mapclj/s

(duration->map d)
source

duration-unit-keysclj/s

source

duration-unitsclj/s

source

duration-units?clj/s

source

duration?clj/s

(duration? d)
source

end-ofclj/s

(end-of v)
source

end-of-monthclj/s

source

end-of-yearclj/s

(end-of-year)
(end-of-year v)
source

errorclj/s

(error & msg)
source

first-day-of-monthclj/s

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

first-of-yearclj/s

(first-of-year)
source

formatclj/s

(format d)
(format d fmt)
source

format-durationclj/s

(format-duration du)
source

format-fullclj/s

(format-full d)
source

format-offsetclj/s

(format-offset x)
source

format-periodclj/s

(format-period p)

takes period map

takes period map
sourceraw docstring

full-formatclj/s

source

get-days-of-weekclj/s

(get-days-of-week)
(get-days-of-week d)

date-times from prior sunday to subsequent for passed in val.

date-times from prior sunday to subsequent for passed in val.
sourceraw docstring

get-weeksclj/s

(get-weeks date)

Given a date return a seq of all the weeks in the year as tick/intervals

Given a date return a seq of all the weeks in the year as tick/intervals
sourceraw docstring

instant-breakdownclj/s

(instant-breakdown t)

Takes an instant of time and breaks it down into units.

Takes an instant of time and breaks it down into units.
sourceraw docstring

instant?clj/s

(instant? d)
source

int->weekdaysclj/s

source

int-monthclj/s

(int-month)
(int-month d)
source

int-yearclj/s

(int-year)
(int-year d)
source

interval-seqclj/s

(interval-seq period start)

Returns lazy seq of intervals starting at start separated by period.

Returns lazy seq of intervals starting at `start` separated by `period`.
sourceraw docstring

iso-date-strcljs

(iso-date-str)
(iso-date-str d)
source

last-day-of-monthclj/s

(last-day-of-month)
(last-day-of-month date)

date - tick/date or similar

date - tick/date or similar
sourceraw docstring

make-compareclj/s

(make-compare op)
source

make-dates-to-intvlsclj/s

(make-dates-to-intvls intvls)

Return a map of date-time to the interval that the date-time is within, for all date-times (a day apart) within the seq of passed in intervals.

Return a map of date-time to the interval that the date-time is within, for
all date-times (a day apart) within the seq of passed in intervals.
sourceraw docstring

make-offsetclj/s

(make-offset duration-or-period)
(make-offset duration period)

offset from period or duration or both

offset from period or duration or both
sourceraw docstring

months-in-yearclj/s

(months-in-year)
(months-in-year d)
source

next-dayclj/s

source

next-dowclj/s

(next-dow dow)
(next-dow dow d)
source

next-fridayclj/s

source

next-mondayclj/s

source

next-monthclj/s

source

next-saturdayclj/s

source

next-sundayclj/s

source

next-thursdayclj/s

source

next-tuesdayclj/s

source

next-wednesdayclj/s

source

next-weekclj/s

source

next-yearclj/s

source

Offsetclj/s

source

offsetclj/s

(offset val units)
(offset val units val2 units2)

Offset from mix and match units of duration and period

Offset from mix and match units of duration and period
sourceraw docstring

offset-from-dateclj/s

(offset-from-date ref-date offset)
source

offset-type?clj/s

source

offset-unitsclj/s

source

offset-units?clj/s

source

offset?clj/s

(offset? d)
source

parse-intclj/s

(parse-int int-str)
source

period->mapclj/s

(period->map p)

Takes a period of time and breaks it down into units.

Takes a period of time and breaks it down into units.
sourceraw docstring

period-seqclj/s

(period-seq period start)

Starting at 'start' - a tick/date, return lazy seq of dates every period units.

Starting at 'start' - a tick/date, return lazy seq of dates every `period` units.
sourceraw docstring

period-unitsclj/s

source

period-units?clj/s

source

period?clj/s

(period? p)
source

plus-duration-fnsclj/s

source

plus-period-fnsclj/s

source

pos-or-emptyclj/s

(pos-or-empty i)
source

priorclj/s

(prior units extract)
(prior units extract d)
source

prior-day-of-weekclj/s

(prior-day-of-week day-of-week)
(prior-day-of-week day-of-week d)

Returns d if it is the day of week day already, otherwise the most recent day of the week in the past. offset-fn is t/+ or t/-

Returns d if it is the day of week `day` already, otherwise the most recent `day` of the week in the past.
offset-fn is t/+ or t/-
sourceraw docstring

prior-fridayclj/s

source

prior-int-yearclj/s

source

prior-mondayclj/s

source

prior-monthclj/s

source

prior-saturdayclj/s

source

prior-sundayclj/s

source

prior-sunday-of-monthclj/s

(prior-sunday-of-month)
(prior-sunday-of-month date)

See prior-sunday

See `prior-sunday`
sourceraw docstring

prior-thursdayclj/s

source

prior-tuesdayclj/s

source

prior-wednesdayclj/s

source

prior-weekclj/s

source

prior-yearclj/s

source

rest-minutesclj/s

(rest-minutes duration)

take a duration remove the hours and get mins remaining

take a duration remove the hours and get mins remaining
sourceraw docstring

start-ofclj/s

(start-of v)
source

start-of-monthclj/s

source

start-of-yearclj/s

(start-of-year)
(start-of-year year)

Input: optional [int] year - returns date-time at start of year

Input: optional [int] year - returns date-time at start of `year`
sourceraw docstring

str->tick-days-periodclj/s

(str->tick-days-period s)
source

subsequentclj/s

(subsequent units extract)
(subsequent units extract d)
source

tick-transit-readerclj/s

source

tick-transit-write-handlerclj/s

source

tick-transit-writer-handler-mapclj/s

source

TickHandlercljs

source

Timeclj/s

source

time-type?clj/s

source

time?clj/s

(time? d)
source

to-intclj/s

(to-int str-num)
source

todayclj/s

(today)
source

today->instclj/s

(today->inst)
source

today->instantclj/s

(today->instant)
source

today-dtclj/s

(today-dt)
source

today?clj/s

(today? v)
source

tomorrowclj/s

source

tomorrow?clj/s

(tomorrow? v)
source

transit-tagclj/s

source

week-indexclj/s

(week-index d)

Week number within this month for given date d, subtracts week of d and week-num of beginning of month.

Week number within this month for given date `d`, subtracts week of `d` and week-num of beginning of month.
sourceraw docstring

week-intvl-seqclj/s

source

week-numclj/s

source

week-num*clj/s

(week-num* date)

Given a date return the week number of the year [1-52].

Given a date return the week number of the year [1-52].
sourceraw docstring

weekday-formatclj/s

(weekday-format d)
source

weekday-format-w-timeclj/s

(weekday-format-w-time d)
source

weekdays->intclj/s

source

weeks-of-monthclj/s

(weeks-of-month)
(weeks-of-month d)
source

within?clj/s

(within? intvl d)
(within? start end d)

Is date inside given interval (or start end)

Is date inside given interval (or start end)
sourceraw docstring

write-trclj

(write-tr data)
source

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

× close