title: How to get the epoch seconds of a timestamp in Python?
body: <p>I need to convert a timestamp into seconds, use it in a conditional statement and compare it with other timestamps.</p>
  
  <p>I have tried to do it with bash but I simply can't use it in my Python script: </p>
  
  <pre><code>date -d "2019-04-05T10:10:16,841" +%s
  </code></pre>
  
  <p>which results in <code>1554433816</code></p>