title: Best way to store a python time.struct_time in a mysql database
body: <p>I am using python's feedparser module, to parse an RSS feed.  Once parsed, feedparser returns dates in a python 9 tuple time format (time.struct_time).  </p>
  
  <p>I am want to store these values in my mysql database so I can later check the <a href="http://www.feedparser.org/docs/http-etag.html" rel="nofollow">Last-Modified headers</a> of the feed.  It's import that if the times tuples are converted, that when converted back they stay the same, so I can later use them for comparison.  </p>
  
  <p>I tried this to convert the time tuple to datetime and then back, but it wasn't the same when converted back:</p>
  
  <pre><code>dt = datetime.fromtimestamp(time.mktime(struct))
  time_tuple = dt.timetuple()
  </code></pre>
  
  <p>What do you think is the method to do this?</p>