Liking cljdoc? Tell your friends :D

joda-time.sugar

Various convenience functions which were deemed worthy.

Various convenience functions which were deemed worthy.
raw docstring

as-mapclj

(as-map o)

Converts a period or a partial into a map representation.

A period is converted into a map where keys correspond to names of DurationFieldTypes. Only durations supported by the provided period are included in the result.

A partial is converted into a map where keys correspond to DateTimeFieldTypes.

An instant/date-time is converted into a map where keys correspond to DateTimeFieldTypes. Every date-time field type will be present in the result.

Converts a period or a partial into a map representation.

A period is converted into a map where keys correspond to names of
`DurationFieldTypes`. Only durations supported by the provided period are
included in the result.

A partial is converted into a map where keys correspond to
`DateTimeFieldTypes`.

An instant/date-time is converted into a map where keys correspond to
`DateTimeFieldTypes`. Every date-time field type will be present in the
result.
raw docstring

days-inclj

(days-in G__3026)
(days-in x__3004__auto__ y__3005__auto__)

Number of days in the given period/interval/pair of instants, date-times or partials.

Number of days in the given period/interval/pair of
instants, date-times or partials.
raw docstring

friday?clj

(friday? o__3036__auto__)

Returns true if the given instant/date-time/partial with the dayOfWeek property represents a friday.

Returns true if the given instant/date-time/partial with the
`dayOfWeek` property represents a friday.
raw docstring

hours-inclj

(hours-in G__3028)
(hours-in x__3004__auto__ y__3005__auto__)

Number of hours in the given period/interval/pair of instants, date-times or partials. Also handles durations.

Number of hours in the given period/interval/pair of
instants, date-times or partials. Also handles durations.
raw docstring

millis-inclj

(millis-in G__3034)
(millis-in x__3004__auto__ y__3005__auto__)

Number of millis in the given period/interval/pair of instants, date-times or partials. Also handles durations.

Number of millis in the given period/interval/pair of
instants, date-times or partials. Also handles durations.
raw docstring

minutes-inclj

(minutes-in G__3030)
(minutes-in x__3004__auto__ y__3005__auto__)

Number of minutes in the given period/interval/pair of instants, date-times or partials. Also handles durations.

Number of minutes in the given period/interval/pair of
instants, date-times or partials. Also handles durations.
raw docstring

monday?clj

(monday? o__3036__auto__)

Returns true if the given instant/date-time/partial with the dayOfWeek property represents a monday.

Returns true if the given instant/date-time/partial with the
`dayOfWeek` property represents a monday.
raw docstring

months-inclj

(months-in G__3022)
(months-in x__3004__auto__ y__3005__auto__)

Number of months in the given period/interval/pair of instants, date-times or partials.

Number of months in the given period/interval/pair of
instants, date-times or partials.
raw docstring

saturday?clj

(saturday? o__3036__auto__)

Returns true if the given instant/date-time/partial with the dayOfWeek property represents a saturday.

Returns true if the given instant/date-time/partial with the
`dayOfWeek` property represents a saturday.
raw docstring

seconds-inclj

(seconds-in G__3032)
(seconds-in x__3004__auto__ y__3005__auto__)

Number of seconds in the given period/interval/pair of instants, date-times or partials. Also handles durations.

Number of seconds in the given period/interval/pair of
instants, date-times or partials. Also handles durations.
raw docstring

sunday?clj

(sunday? o__3036__auto__)

Returns true if the given instant/date-time/partial with the dayOfWeek property represents a sunday.

Returns true if the given instant/date-time/partial with the
`dayOfWeek` property represents a sunday.
raw docstring

thursday?clj

(thursday? o__3036__auto__)

Returns true if the given instant/date-time/partial with the dayOfWeek property represents a thursday.

Returns true if the given instant/date-time/partial with the
`dayOfWeek` property represents a thursday.
raw docstring

tuesday?clj

(tuesday? o__3036__auto__)

Returns true if the given instant/date-time/partial with the dayOfWeek property represents a tuesday.

Returns true if the given instant/date-time/partial with the
`dayOfWeek` property represents a tuesday.
raw docstring

wednesday?clj

(wednesday? o__3036__auto__)

Returns true if the given instant/date-time/partial with the dayOfWeek property represents a wednesday.

Returns true if the given instant/date-time/partial with the
`dayOfWeek` property represents a wednesday.
raw docstring

weekday?clj

(weekday? dt)

weekend?clj

(weekend? dt)

weeks-inclj

(weeks-in G__3024)
(weeks-in x__3004__auto__ y__3005__auto__)

Number of weeks in the given period/interval/pair of instants, date-times or partials.

Number of weeks in the given period/interval/pair of
instants, date-times or partials.
raw docstring

years-inclj

(years-in G__3020)
(years-in x__3004__auto__ y__3005__auto__)

Number of years in the given period/interval/pair of instants, date-times or partials.

Number of years in the given period/interval/pair of
instants, date-times or partials.
raw docstring

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

× close