title: Format milliseconds to simpledate format
body: <p>I'm facing a weird result when formatting milliseconds to a SimpleDate format:</p>
  
  <p>Output is:</p>
  
  <pre><code>    Start date time: 11/06/30 09:45:48:970
      End date time: 11/06/30 09:45:52:831
      Execution time: 01:00:03:861
  </code></pre>
  
  <p>Script:</p>
  
  <pre><code>    long dateTimeStart = System.currentTimeMillis();    
      // some script execution here
      long dateTimeEnd = System.currentTimeMillis();
  
      "Start date time: " + GlobalUtilities.getDate(dateTimeStart, "yy/MM/dd hh:mm:ss:SSS"); 
      "End date time: " + GlobalUtilities.getDate(dateTimeEnd, "yy/MM/dd hh:mm:ss:SSS"); 
      "Execution time: " + GlobalUtilities.getDate((dateTimeEnd - dateTimeStart), "hh:mm:ss:SSS");
  </code></pre>
  
  <p>Method:</p>
  
  <pre><code>    public static String getDate(long milliseconds, String format)
      {
          SimpleDateFormat sdf = new SimpleDateFormat(format);
          return sdf.format(milliseconds);
      }
  </code></pre>
  
  <p>Any idea why the execution time value is so off? It should be 00:00:03:861, not 01:00:03:861</p>
  
  <p>Thanks</p>