how to convert duration in (milli)seconds into text in current Locale?
<p>I have a number of milliseconds as a duration. I want to format it as a text in current locale. Are there any libraries that can help me?</p>

<p>I expect something like this:</p>

<pre><code>long msec = 55 * 1000;
assert format(msec, Locale.ENGLISH).equals("55 sec");
assert format(msec, new Locale("ru")).equals("55 сек");
</code></pre>
