https://github.com/coast-framework/time
Clojure time helpers
https://github.com/coast-framework/time
Last synced: about 1 year ago
JSON representation
Clojure time helpers
- Host: GitHub
- URL: https://github.com/coast-framework/time
- Owner: coast-framework
- License: mit
- Created: 2019-07-30T22:45:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-17T18:30:06.000Z (almost 7 years ago)
- Last Synced: 2025-05-17T10:08:32.355Z (about 1 year ago)
- Language: Clojure
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# time
Clojure time helpers
## Installation
Add it to your [deps.edn](https://clojure.org/guides/deps_and_cli)
```clojure
coast-framework/time {:mvn/version "1.0.0"}
```
## Usage
Everything is centered around epoch/milliseconds and the java.time apis
```clojure
(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.