Skip to content

coast-framework/time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

time

Clojure time helpers

Installation

Add it to your deps.edn

coast-framework/time {:mvn/version "1.0.0"}

Usage

Everything is centered around epoch/milliseconds and the java.time apis

(ns your-project
  (:require [time.core :as time]))

(time/now) ; => prints the current # of seconds since epoch

(time/ms [2019 01 01 0 0 0]) ; => milliseconds from date/time

; here's a more complete example of going from (now) to zoned date time to a formatted string

(-> (time/now)
    (time/zoned)
    (time/fmt)) ; => "01/01/2019 00:00:00"

There are more helper functions, but the docs are thin, use the source, Luke.

License

MIT

Contributing

Do it. I dare you.

About

Clojure time helpers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published