title: Convert datetime format to unix timestamp in Python
body: <p>I want to convert datetime format to unix timestamp. How can I do this. Could anyone help me ?</p>
  
  <pre><code>import datetime
  time_of_day = datetime.datetime.now()
  replaced_time = time_of_day.replace(hour=0, minute=0) 
  </code></pre>