how to convert ctime to datetime
<pre><code>import time
t = time.ctime()
</code></pre>

<p>In my computer t is 'Sat Apr 21 11:58:02 2012'.</p>

<p>My question is: how to convert t to datetime in python?Is there any modules to to it?
I try to make a time dict and then covert t, but i didn't think it's a correct way in python. </p>

<p>May be i can desc my question clearly: I have a ctime list, such ['Sat Apr 21 11:56:48 2012', 'Sat Apr 21 11:56:48 2012'], i wan't to convert then to datetime and then store in db with timestamp</p>
