scribe.time.core

Multimethod definitions for generically dealing with different
implementations of time.

*instant-class*

dynamic

The concrete class for representing `instant?`s.

Defaults to `java.time.Instant`.

*local-date-class*

dynamic

The default concrete class for representing `local-date?`s.

Defaults to `java.time.LocalDate`.

*local-time-class*

dynamic

The default concrete class for representing `local-time?`s.

Defaults to `java.time.LocalTime`.

instant?

multimethod

Does the arg represent a single instant in time?

Pretty much equivalent to clojure.core/inst?

local-date?

multimethod

Does the arg represent a calendar date, without referencing a time zone or a
time of day?

local-time?

multimethod

Does the arg represent a time of day, without referencing a time zone or a
date?

of-epoch-day

multimethod

Converts a number of days since epoch to an instance of target-class.

of-epoch-micro

multimethod

Converts a number of microseconds from epoch to an instance of target-class.

of-epoch-milli

multimethod

Converts a number of milliseconds from epoch to an instance of target-class.

of-micro-of-day

multimethod

Converts a number of microseconds from midnight to an instance of
target-class.

of-milli-of-day

multimethod

Converts a number of milliseconds from midnight to an instance of
target-class.

to-epoch-day

multimethod

Converts a local date to the number of days since epoch.

to-epoch-micro

multimethod

Converts instant to the number of microseconds from epoch.

to-epoch-milli

multimethod

Converts instant to the number of milliseconds from epoch.

to-micro-of-day

multimethod

Converts a local time to the number of microseconds since midnight.

to-milli-of-day

multimethod

Converts a local time to the number of milliseconds since midnight.