[ python-Bugs-1459642 ] time.timezone / time.strftime('%z') problem

SourceForge.net noreply at sourceforge.net
Mon Mar 27 23:47:19 CEST 2006


Bugs item #1459642, was opened at 2006-03-27 23:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1459642&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Simon Lanzmich (si_lan)
Assigned to: Nobody/Anonymous (nobody)
Summary: time.timezone / time.strftime('%z') problem

Initial Comment:
The information returned by time.timezone and
time.strftime('%z') are different!

I get the following results:

[simon at simon ~]$ date +%z
+0200
[simon at simon ~]$ date +%Z
CEST
[simon at simon ~]$ python
Python 2.4.2 (#1, Feb 12 2006, 03:45:41)
[GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)] on linux2
 [...]
>>> time.timezone
-3600
>>> time.strftime('%z')
'+0200'

Please correct me if I'm wrong, but shouldn't
"time.timezone" return -7200 ?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1459642&group_id=5470


More information about the Python-bugs-list mailing list