time.strftime BUG?
Roman Suzi
rnd at onego.ru
Sat Jul 7 03:34:03 EDT 2001
Hello,
I have found that on my system (Linux RH6.2+, glibc-2.1.3)
strftime shows me the following:
>>> import time
>>> time.strftime("%Z", time.localtime(time.time()))
'MSD'
>>> time.strftime("%z", time.localtime(time.time()))
'+0000'
While I believe the later should be:
'+0400'
At the same time:
$ date +%z
+0400
which looks reasonable. What is wrong?
Sincerely yours, Roman Suzi
--
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Saturday, July 07, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "OK, I'm weird! But I'm saving up to become eccentric." _/
More information about the Python-list
mailing list