Liking cljdoc? Tell your friends :D

Instants and Inst

tick’s default convention is java.time.Instant but caters for projects that use java.util.Date by the conversions above. It is recommended when using tick to keep as an instant for as long as possible.

Creation

To get the current instant:

(t/instant)
(t/now)

Create a specific instant:

(t/instant "2000-01-01T00:00:00.001")

Conversions between Inst and Instant

Convert inst to and from instant:

(t/instant (t/inst))
(t/inst (t/instant))

Can you improve this documentation? These fine people already did:
Johanna Antonelli & Malcolm Sparks
Edit on GitHub

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

× close