title: getMilliseconds() out of Java Date
body: <p>I need a function like
  long getMillis(Date aDate);</p>
  
  <p>that returns the milliseconds of the Date second.
  I cannot use Yoda, SimpleDateFormat or other libraries because it's gwt code.</p>
  
  <p>My current solution is doing <code>date.getTime() % 1000</code></p>
  
  <p>Is there a better way?</p>