Skip to content

Instantly share code, notes, and snippets.

@mmzsource
Last active February 18, 2017 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmzsource/6ea63ef70d2baa8bc8dd31e0a98ed225 to your computer and use it in GitHub Desktop.
Save mmzsource/6ea63ef70d2baa8bc8dd31e0a98ed225 to your computer and use it in GitHub Desktop.
Clojure Boot repl session - Calculate number of weeks between 2 dates
boot repl
(set-env! :dependencies '[[clojure.java-time "0.2.2"]])
(require '[java-time :as t])
(t/time-between (t/local-date 2014 9 27) (t/local-date 2017 2 18) :weeks)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment