Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jolt-lang/time

Date and time for jolt via juxt/tick.

The library provides the java.time.* surface (Instant, LocalDate, ZonedDateTime, Duration, DateTimeFormatter, …) as a pure-Clojure host shim, then pulls tick and cljc.java-time through deps.edn to expose tick's idiomatic Clojure API on top. Requiring it installs the shim and gives you the tick API.

Use

;; deps.edn
{:deps {io.github.jolt-lang/time {:git/url "https://github.com/jolt-lang/time.git"
                                  :git/sha "2738160a958345a927e83cdb8f5a80a2c47f0aa0"}}}
(require '[tick.core :as t])
(t/now)
(t/>> (t/date "2020-01-01") (t/new-period 3 :months))

Test

jolt -M:test

Runs tick's own suite plus the migrated jolt java.time cases. tick, spec.alpha, and the time-literals data-reader glue are vendored under vendor/ so the gate is self-contained.

About

A Jolt library for dealing with time

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages