I have an attribute of type instant and I want to query for the year.
[:find ?year
:where
[?t :x/date ?date]
[((fn [dt] (+ (.getYear dt) 1900)) ?date) ?year]]
Is there a better way to do this query?
I have an attribute of type instant and I want to query for the year.
[:find ?year
:where
[?t :x/date ?date]
[((fn [dt] (+ (.getYear dt) 1900)) ?date) ?year]]
Is there a better way to do this query?