title: Python datetime to epoch
body: <pre><code>t='20180515102500'
  d=datetime.strptime(t, "%Y%m%d%H%M%S")
  millis_since_epoch = int(time.mktime(d.timetuple())) * 1000
  print(millis_since_epoch)
  </code></pre>
  
  <p>gives me: 15263<strong>799</strong>00000 on repl.it(python 3.6.1)
  and 
  on my local: 15263<strong>979</strong>00000 (python 2.7.14)</p>
  
  <p>Why?
  What is the recommended way to convert datetime object to epoch?</p>