title: Python to JavaScript unix time conversion
body: <p>In JavaScript:</p>
  
  <pre class="lang-js prettyprint-override"><code>new Date(2014, 5, 1).getTime()
  // results: 1401561000000
  </code></pre>
  
  <p>While in python:</p>
  
  <pre class="lang-py prettyprint-override"><code>import time
  import datetime
  time.mktime(datetime.datetime(2014, 5 , 1).timetuple())
  # results -&gt; 1398882600.0
  </code></pre>
  
  <p>How can I convert python time to a JavaScript unix time stamp?</p>