[cpif] pytz and Europe/Madrid
Jesus Cea
jcea at argo.es
Thu May 24 12:55:33 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sorry to bother you, Stuart.
I'm trying to use pytz (2007d), but Spain timezone seems "wrong":
"""
>>> import pytz
>>> pytz.timezone("Europe/Madrid")
<DstTzInfo 'Europe/Madrid' WET0:00:00 STD>
"""
Madrid timezone is CET, not WET. We are GMT+1 in winter and GMT+2 in summer.
You say in the webpage that timezone definition issues must be
redirected to http://www.twinsun.com/tz/tz-link.htm mailing list, but
the timezone definition for Madrid, there, seems right:
"""
...
Zone Europe/Madrid -0:14:44 - LMT 1901 Jan 1 0:00s
0:00 Spain WE%sT 1946 Sep 30
1:00 Spain CE%sT 1979
1:00 EU CE%sT
...
"""
(file version 2007f)
So... I suppose I'm missing something, but how can I select between the
different timezone definition for a given zone?. Selection by year, that
is. Europe/Madrid has several definitions and I would like to be able to
choose the current one :-).
Thanks for your time.
- --
Jesus Cea Avion _/_/ _/_/_/ _/_/_/
jcea at argo.es http://www.argo.es/~jcea/ _/_/ _/_/ _/_/ _/_/ _/_/
jabber / xmpp:jcea at jabber.org _/_/ _/_/ _/_/_/_/_/
_/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBRlVvJZlgi5GaxT1NAQLKMAQAkzVLb8OUZN6Om1QwLL33uN2ww2oSauTv
akYYEchiYq9ribGXhh5hjuQOeBHGElVfRf51bViJlrXU5JpEut9Vu2ce+/jtu/yV
SS0PvGNvbWX7vAQRZduVwIkb+mRJc1v6owTLGfw/jMgpDCKN4C5YSPgdBJrLnY+H
xUYX46n+G5Y=
=ZWmI
-----END PGP SIGNATURE-----
More information about the cpif
mailing list