title: Converting unix timestamp (length 13) string to readable date in Python
body: <p>i am tring to convert this unix timestamp 1491613677888 to readable date.
  found here (stackoverflow) that python script:</p>
  
  <pre><code>import datetime
  print(
      datetime.datetime.fromtimestamp(
      int("1284101485")
      ).strftime('%Y-%m-%d %H:%M:%S')
  )
  </code></pre>
  
  <p>but when i put my timestamp there, i got that error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  OSError: [Errno 22] Invalid argument
  </code></pre>
  
  <p>now i see that the timestamp that i am using is 3 chars longer.
  i checked it on this link:
  <a href="http://www.unixtimestamp.com/index.php" rel="nofollow noreferrer">http://www.unixtimestamp.com/index.php</a></p>
  
  <p>and saw that its get the time out of it.
  how can i do it using python?
  (i am using python 3.4)</p>