En Tue, 06 Mar 2007 06:41:59 -0300, looping <[EMAIL PROTECTED]> escribió:
> On Mar 6, 9:51 am, "looping" <[EMAIL PROTECTED]> wrote: >> >> >>> from pytz import timezone >> >>> eastern = timezone('US/Eastern') >> >> I'm running python 2.5 on WinXP French with the egg from CheeseShop. >> >> Same error with all timezone (like timezone('Europe/Zurich'), >> timezone('Europe/Amsterdam'), ...) except a few one:>>> print >> timezone('UTC') >> >> UTC >> >> Is this a pytz problem or something I didn't understand ? > > OK, the error come from datetime.utcfromtimestamp that doesn't support > negative value. > pytz try to pass -1633280400 to this function. > > Is this a problem from Windows ? Perhaps it's a problem in pytz trying to go too far in the past... -1633280400 refers to a date around 1919. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list