Fork me on GitHub
#juxt
<
2020-12-04
>
Adrian Smith14:12:59

is it possible to get a timestamp out of a (t/date "2020-01-01") style date?

Adrian Smith14:12:42

Shortest path I found was something like: (.getEpochSecond (t/instant (t/zoned-date-time "1918-11-11T11:00:00Z[Europe/Paris]")))

jjttjj22:12:17

Not much different but you can do

(-> (t/date "2020-01-01")
    t/midnight
    (t/in (t/zone "Europe/Paris"))
    t/instant
    .getEpochSecond)