Fork me on GitHub
#juxt
<
2022-12-24
>
Ajithkumar20:12:28

I'm trying date time conversion using the https://github.com/juxt/https://github.com/juxt/tick 1. the date-time to long 2. then convert back to date time, but while

(tick.core/long (tick.core/now))
=> 1671913688
(DateTime. 1671913688)
=> #clj-time/date-time"1970-01-20T08:25:13.688Z"
But while i am doing this is always getting 1970-01-20T08:25:13.688Z wrong timestamp, can anyone please help me with this problem

Ajithkumar20:12:21

Hi All From the https://github.com/juxt/tick how can i get the datetime in the millisecond

(* (tick.core/long (tick.core/now)) 1000)
=> 1671915244000
Do i need to multiply by 1000 each time or is there any other way?

alexdavis22:12:11

you don't need tick to get the current millis, just use

(System/currentTimeMillis)

seancorfield21:12:24

Given this is a major holiday weekend for most folks, you'll probably not get an answer for a few days. Be patient (and don't cross post questions to multiple channels please).

🆗 1