(+ 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?
(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
(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
(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.
(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.
(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.
(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.
(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
(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.
(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
(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.
(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`.
(last-day-of-month)
(last-day-of-month date)
date - tick/date or similar
date - tick/date or similar
(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.
(make-offset duration-or-period)
(make-offset duration period)
offset from period or duration or both
offset from period or duration or both
(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
(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.
(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.
(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/-
(prior-sunday-of-month)
(prior-sunday-of-month date)
See prior-sunday
See `prior-sunday`
(rest-minutes duration)
take a duration remove the hours and get mins remaining
take a duration remove the hours and get mins remaining
(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`
(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.
(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].
(within? intvl d)
(within? start end d)
Is date inside given interval (or start end)
Is date inside given interval (or start end)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close