How do you get a timestamp in ClojureScript?
The most efficient way is this
(.now js/Date)
Other answers needlessly create a Date object.
You can use
(.getTime (js/Date.))
or you could also use now
or epoch
from cljs-time.
The most efficient way is this
(.now js/Date)
Other answers needlessly create a Date object.
You can use
(.getTime (js/Date.))
or you could also use now
or epoch
from cljs-time.