Liking cljdoc? Tell your friends :D

tablecloth.time.api.converters


->daysclj

(->days datetime)
source

->everyclj

(->every interval chrono-unit)
(->every interval chrono-unit datetime)
source

->hoursclj

(->hours datetime)
source

->instantclj

(->instant datetime)

Convert any datetime to an instant.

Convert any datetime to an instant.
sourceraw docstring

->local-dateclj

(->local-date datetime)

Convert any datetime to a local date.

Convert any datetime to a local date.
sourceraw docstring

->local-date-timeclj

(->local-date-time datetime)

Convert any datetime to a local datetime.

Convert any datetime to a local datetime.
sourceraw docstring

->minutesclj

(->minutes datetime)
source

->months-endclj

(->months-end datetime)
source

->quarters-endclj

(->quarters-end datetime)
source

->secondsclj

(->seconds datetime)
source

->weeks-endclj

(->weeks-end datetime)
source

->years-endclj

(->years-end datetime)
source

anytime->millisecondsclj

(anytime->milliseconds str-or-datetime)
(anytime->milliseconds str-or-datetime timezone)

Converts any time unit type to milliseconds.

Converts any time unit type to milliseconds.
sourceraw docstring

convert-toclj

(convert-to datetime datetime-type)

Convert time to different type as specified by datetime-type.

Convert time to different type as specified by `datetime-type`.
sourceraw docstring

down-to-nearestclj

(down-to-nearest interval chrono-unit)
(down-to-nearest interval chrono-unit datetime)
source

milliseconds->anytimeclj

(milliseconds->anytime millis datetime-type)
(milliseconds->anytime millis datetime-type timezone)

Convert milliseconds to any time unit as specified by datetime-type.

Convert milliseconds to any time unit as specified by `datetime-type`.
sourceraw docstring

milliseconds-inclj

(milliseconds-in chrono-unit)
source

milliseconds-since-epoch->yearclj

(milliseconds-since-epoch->year millis)
(milliseconds-since-epoch->year millis timezone)
source

string->timeclj

(string->time str)

Given an identifiable time, returns the correct datetime object. Optionally, you can specify a target type to also convert to a different type in one step.

TODO: How do we define what an 'identifiable' string means?

Given an identifiable time, returns the correct datetime object.
Optionally, you can specify a target type to also convert to a
different type in one step.

TODO: How do we define what an 'identifiable' string means?
sourceraw docstring

year->local-dateclj

(year->local-date year)
source

year->milliseconds-since-epochclj

(year->milliseconds-since-epoch year)
source

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

× close