Re: [CLJS] Finding current time in millis

2012-01-14 Thread Baishampayan Ghose
> I am trying to write a CLJS (0df1bc4d7b) function that finds out the > current system time in milliseconds, equivalent of (System/ > currentTimeMillis) in Clojure: > > (ns foo) > > (defn now [] >  ;; new Date().getTime() >  (.getTime (js/Date.))) > > > This displays the following when displayed u

[CLJS] Finding current time in millis

2012-01-14 Thread Shantanu Kumar
Hi, I am trying to write a CLJS (0df1bc4d7b) function that finds out the current system time in milliseconds, equivalent of (System/ currentTimeMillis) in Clojure: (ns foo) (defn now [] ;; new Date().getTime() (.getTime (js/Date.))) This displays the following when displayed using JavaScri