title: simple way to drop milliseconds from python datetime.datetime object
body: <p>My colleague needs me to drop the milliseconds from my python timestamp objects in order to comply with the old POSIX (IEEE Std 1003.1-1988) standard. The tortured route that accomplishes this task for me is as follows:</p>
  
  <pre><code>datetime.datetime.strptime(datetime.datetime.today().strftime("%Y-%m-%d %H:%M:%S"),"%Y-%m-%d %H:%M:%S")
  </code></pre>
  
  <p>Is there a simpler way to end up with a datetime.datetime object for mongoDB than this?</p>