This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-11
Channels
- # announcements (1)
- # aws (1)
- # babashka (1)
- # beginners (41)
- # bristol-clojurians (2)
- # clara (2)
- # cljs-dev (7)
- # clojure (18)
- # clojure-europe (1)
- # clojure-finland (2)
- # clojure-uk (9)
- # clojurescript (5)
- # community-development (2)
- # data-science (14)
- # events (1)
- # fulcro (12)
- # joker (12)
- # malli (2)
- # reitit (1)
- # xtdb (1)
Hello! Someone knows how to get the current time from OS using Joker?
(i mean... without calling a shell or another executable in OS...)
I've seen, but I couldn't figure out. When I call joker.time/now
I get back a #object[Proc] that I couldn't use in any place...
I've tried call string
, parse
, etc on it, but uncessfully
my bad
And it doesn't return just a String
, but a Time
object that you can further manipulate:
user=> (type (joker.time/now))
Time
user=> (joker.time/now)
2020-01-11 09:54:15.601988473 -0500 EST m=+9.694898411
user=> (let [cur (now)] (sleep (* second 3)) (println (sub (now) cur)))
3000091841
nil
user=>
Joker v0.14.1 has been released: https://github.com/candid82/joker/releases/tag/v0.14.1
👍 20