title: Clojure: time difference between now and a records SQL datetime
body: <p>Trying to find out whats the best way to get the difference between the current time and a mySQL record's datetime.</p>
  
  <p>Here is a snippet of my code</p>
  
  <pre><code>(ns clojure.example.hello
    (:require [clj-time.coerce :as coerce]
              [clj-time.local :as l]))
  
  (let [timenow (l/local-now) ;; #object[org.joda.time.DateTime 0x333e8ce5 2017-02-23T21:44:11.022+11:00]
        last-update (gettimelogged :timestamp) 
        ;; returns SQL datetime which is 2017-02-23 19:20:15, 
        ;; but gets converted into #inst "2017-02-23T08:20:15.000000000-00:00"]
  
   (println (timenow - lastupdate)))
  </code></pre>
  
  <p>What's the best way to run a comparison between timenow and last-updated?</p>
  
  <p>Also what is the best way to update the timestamp if I need to? Say if I want to lazy load it into clojure, sometime like, {:NAME "Jim" :AGE "24" :CHECKDATE "NOW()"}</p>