Datetime module

rublind at gmail.com rublind at gmail.com
Mon Jan 10 00:46:12 EST 2005


I am writing a script that acts as an AIM bot [using twisted.IM's base
scripts] and I want to add a logging feature. I got it to log who sends
what to whom, but what I want to add is the date and time that the
message was sent (or recieved by the bot), I tried to look at datetime
on my own, and I couldn't get anything to work.
Anyone know a simple way to get the current date and/or time?

Thanks!




More information about the Python-list mailing list