in 671891 20120210 212545 Olive wrote:
>In the datetime module, it has support for a notion of timezone but is
>it possible to use one of the available timezone (I am on Linux). Linux
>has a notion of timezone (in my distribution, they are stored
>in /usr/share/zoneinfo). I would like to be able 1
On Fri, Feb 10, 2012 at 1:25 PM, Olive wrote:
> In the datetime module, it has support for a notion of timezone but is
> it possible to use one of the available timezone (I am on Linux). Linux
> has a notion of timezone (in my distribution, they are stored
> in /usr/share/zoneinfo). I would like t
In <[email protected]> Olive writes:
> In the datetime module, it has support for a notion of timezone but is
> it possible to use one of the available timezone (I am on Linux). Linux
> has a notion of timezone (in my distribution, they are stored
> in /usr/share/zoneinfo). I wo
[EMAIL PROTECTED] wrote:
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 da
take a look at the logging module as well, in the documentation
(paragraph 6.29.2 for release 2.4) you find a basic example
--
http://mail.python.org/mailman/listinfo/python-list
The time module will do.
>>> import time
>>> time.ctime()
'Mon Jan 10 11:17:54 2005'
Use strftime if you need to format the time differently.
>>> time.strftime("%Y-%m-%d %H:%m:%S",time.localtime())
'2005-01-10 11:01:45'
On 9 Jan 2005 21:46:12 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>