title: Getting unix timestamp from Date()
body: <p>I can convert a unix timestamp to a <code>Date()</code> object by putting the <code>long</code> value into the <code>Date()</code> constructor. For eg: I could have it as <code>new Date(1318762128031)</code>. </p>
  
  <p>But after that, how can I get back the unix timestamp from the <code>Date()</code> object?</p>