title: Firebase datetime convert error on python
body: <p>Can someone explain how i can calculate the time in <code>"%Y%m%d%H%M%S%f"</code> from my Firebase timestamp? I am receiving an error</p>
  
  <blockquote>
    <p>signed integer is greater than maximum</p>
  </blockquote>
  
  <p>when i do the following:</p>
  
  <pre><code>from datetime import datetime
  def formatdatetime(sfd):
    ts = datetime(sfd)
    print(datetime.strftime("%Y%m%d%H%M%S%f", ts))
  
  formatdatetime(1521508504583)
  </code></pre>
  
  <p>I'm guessing that I'm not taking in the milliseconds correctly? </p>