title: Convert milliseconds to string %H%M%S.%f
body: <p>I'm trying to convert time in milliseconds to time in a string with milliseconds.</p>
  <pre><code>import datetime
  
  x = 23500
  j = x / 1000.0
  print(datetime.datetime.fromtimestamp(j).strftime('%H:%M:%S.%f'))
  </code></pre>
  <p>The result is '03:00:23.500000'.</p>
  <p>And this is not true. 23500 ms is not 3 hours 23 seconds, but only 23 seconds.</p>
  <p>The module time allows me correct conversion, but does not display milliseconds.</p>
  <p>Can someone explain to me why the datetime module does not give the correct value?</p>
  <p>Thanks in advance.</p>