title: How to convert microsecond timestamp to readable date?
body: <p>I want to convert the following timestamp - <code>&quot;1571299045371875&quot;</code> which is in microseconds to a date format of <code>&quot;2019-10-17T07:57:35.333333Z&quot;</code>.</p>
  <p>I've tried using:</p>
  <pre><code>date_time = datetime.utcfromtimestamp(timestamp)
  st = date_time.strftime(&quot;%Y-%m-%dT%H:%M:%S.%fZ&quot;)
  </code></pre>
  <p>But this gives me <code>[Errno 22] Invalid argument</code>, when trying to convert the timestamp.
  Converting a timestamp of milliseconds works fine, but I can't lose precision.</p>
  <p>Is there any way to convert microsecond timestamp?</p>