Why Javascript's Date(timestamp) and Python's datetime.fromtimestamp(timestamp) differ?
<p>I have the following timestamp in JS: <strong>1436428916900</strong>
When I enter this date in JS I got the following results: </p>

<blockquote>
  <blockquote>
    <p>Date(1436428916900)
        "Tue Feb 16 2016 20:09:42 GMT+0200 (EET)"</p>
  </blockquote>
</blockquote>

<p>I found several questions on SO and most of them offer following solution: </p>

<pre><code>import datetime
my_time = 1436428916900
date = datetime.datetime.fromtimestamp(my_time / 1e3)
</code></pre>

<p>But the problem is that this code results in the following result : </p>

<pre><code>datetime.datetime(2015, 7, 9, 11, 1, 56, 900000)
</code></pre>

<p>which is absolutely different result from JS code.</p>

<p>Sources : <a href="https://stackoverflow.com/questions/10286224/javascript-timestamp-to-python-datetime-conversion">JavaScript timestamp to Python datetime conversion</a></p>

<p><a href="https://stackoverflow.com/questions/9744775/how-to-convert-integer-timestamp-to-python-datetime">How to convert integer timestamp to Python datetime</a></p>