Bugs item #1459642, was opened at 2006-03-27 21:47
Message generated for change (Comment added) made by gbrandl
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: Closed
>Resolution: Invalid
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:

[EMAIL PROTECTED] ~]$ date +%z
+0200
[EMAIL PROTECTED] ~]$ date +%Z
CEST
[EMAIL PROTECTED] ~]$ 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 ?


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

>Comment By: Georg Brandl (gbrandl)
Date: 2006-03-27 22:13

Message:
Logged In: YES 
user_id=849994

time.timezone is documented to return the offset for the
current non-DST timezone. Your timezone is CEST, which is
CET (+0100) plus DST, which is indicated by time.daylight
being nonzero.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1459642&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to