time.strftime()

Carsten Gaebler news at snakefarm.org
Mon Mar 10 07:24:46 EST 2003


jsaul wrote:

>>>>time.strftime("%a, %d %b %Y %H:%M:%S %z", time.localtime())
>>>
> 'Mon, 10 Mar 2003 10:26:51 +0000'
> 
> It should be '+0100' because this is CET time zone:
> 
>>>>time.strftime("%Z",time.localtime())
>>>
> 'CET'

Same on my system. But 'date +%z' works fine, so it doesn't seem to be a 
library issue but a python bug.

cg.





More information about the Python-list mailing list