title: Convert date to seconds
body: <p>I am looking for python equivalent <code>GNU date(1)</code> option. Basically I want to convert date into seconds like in the example below, I tried look from the python docs but I couldn't find equivalent time module.</p>
  
  <pre><code>$ convdate="Jul  1 12:00:00 2015 GMT"
  
  $ date '+%s' --date "$convdate"
  
  1435752000
  </code></pre>
  
  <p>From <code>GNU date(1)</code> man page</p>
  
  <pre><code>-d, --date=STRING
                display time described by STRING, not 'now'
  </code></pre>