convert milliseconds Integer into time formatted String
<p>It might be an easy question but I am confused and need your help. 
I need to convert this: </p>

<pre><code>let S: Int = 45296789
</code></pre>

<p>into this: "12 34 56 789"</p>

<p>that is to say S is the integer representing milliseconds. What I need is to format it into "<code>hh mm ss iii</code>"</p>

<p>One of the solution could be the following:</p>

<pre><code>var a = S/1000/60/60
var b = S/1000/60%60
var c = S/1000 % 60
var d = S % 1000

String(format:"%02i %02i %02i %03i", a, b, c, d)
</code></pre>

<p>But what I need is a method using <code>NSDateFormatter()</code> or <code>NSTimeFormatter()</code> if it is possible.</p>

<p>I looked into stackoverflow but there are too many forms of solution and I could not find the one including the milliseconds. (the 789 milliseconds part)</p>