datetime module and timezone

Olive diolu at bigfoot.com
Fri Feb 10 22:25:45 CET 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?

Olive



More information about the Python-list mailing list