title: how to get seconds from java long, I'm storing it in mssql DB as bigint
body: <p>I store the long values in mssql using bigint so I could do something like this:</p>
  
  <pre><code>--@start and @end are bigint
  set @duration = @start - @end
  </code></pre>
  
  <p>now I need some additional operation so I could get the duration in seconds, anybody knows how ?</p>