datetime module and timezone

Olive diolu at
Fri Feb 10 16:25:45 EST 2012

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) to know the current
timezone and 2) to be able to use the timezone available on the system.
How can I do that?


More information about the Python-list mailing list