Milliseconds and nanoseconds in time format
<p>This is my code:</p>

<pre><code>long currentTime = System.currentTimeMillis();
Date date = new Date(currentTime); // if you really have long
String result = new SimpleDateFormat("HH:mm:ss").format(date.getTime());
</code></pre>

<p>Is it possible to add milliseconds and nanoseconds to the date format ?</p>
