Daniel Diniz <[EMAIL PROTECTED]> added the comment:

New patch. I added the new rule and changed the old behavior to be wrong
(a bit) less often. It may mess with code that depended on the previous
wrong results. Given the (AFAIK) exemplificative nature of this file,
this should not be a big problem.

I was going to add a complete table for US DSTs rules, but that is
already available in pytz (http://sourceforge.net/projects/pytz/ ) and
there are many special cases for different US states.

Changes:
Added a four periods approach (the three in my last msg plus "before
1967" -> no DST).
Added links to the Olson Database and pytz (which IMHO would be a great
addition to the std-lib).
Tried to explain the rules, but I think the resulting text is pretty bad.
Corrected a UnboundLocalError bug in my previous patch.

Added file: http://bugs.python.org/file9953/tzinfo-examples3.patch

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2525>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to