Convert various epoch times to java.time.Instant times in Clojure.
Clojure
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/epochs
test/epochs
.gitignore
LICENSE
README.md
project.clj

README.md

Epochs-clojure

Convert various epoch times to java.time.Instant times in Clojure.

$ rlwrap lein repl
user=> (use 'epochs.core)
nil
user=> (unix 1234567890)
#object[java.time.Instant 0x663f76b "2009-02-13T23:31:30Z"]
user=> (google-calendar 1234567890)
#object[java.time.Instant 0xf53c7ad "2007-03-16T23:31:30Z"]

Contributors

@noppers originally worked out how to do the Google Calendar calculation.

See Also

This project was originally done in Perl. See the Time::Moment::Epoch web page for motivation.

There are also versions in:

License

Copyright © 2017 oylenshpeegul

Distributed under the Eclipse Public License version 1.0.