title: How can I destructure an instant and extract year, month, etc from java-time library
body: <p>I'm trying to destructure an <code>instant</code> and get year, month, day.</p>
  
  <p>I've tried with <code>java-time/as</code> function without success.</p>
  
  <pre><code>(ns myproject.time-test
    (:require [java-time :as jt])
    (:gen-class))
  
  (def curr-time (jt/instant (System/currentTimeMillis)))
  
  (jt/as curr-time :year)
  </code></pre>
  
  <p>Can anyone point me in the right direction?</p>